

def    lowerCAmelCase__							(		SCREAMING_SNAKE_CASE_:							Any		,    SCREAMING_SNAKE_CASE_:							Tuple )     -> Any:




				'''simple docstring'''





				sequence.append(SCREAMING_SNAKE_CASE_ )

				A__            =     0
				while sequence[index] != target:
								index += 1

				sequence.pop()

				if index == len(SCREAMING_SNAKE_CASE_ ):
								return None

				return index


if __name__ == "__main__":
	lowerCAmelCase__						=	input("""Enter numbers separated by comma:\n""").strip()
	lowerCAmelCase__						=	[int(item) for item in user_input.split(""",""")]

	lowerCAmelCase__						=	input("""Enter a single number to be found in the list:\n""")
	lowerCAmelCase__						=	int(target_input)
	lowerCAmelCase__						=	sentinel_linear_search(sequence, target)
	if result is not None:
		print(f"""{target} found at positions: {result}""")
	else:
		print("""Not found""")




from typing import Optional

from ..utils.logging import get_logger
from .audio_classificiation import AudioClassification
from .automatic_speech_recognition import AutomaticSpeechRecognition
from .base import TaskTemplate
from .image_classification import ImageClassification
from .language_modeling import LanguageModeling
from .question_answering import QuestionAnsweringExtractive
from .summarization import Summarization
from .text_classification import TextClassification


lowerCAmelCase__						=	[
    """AutomaticSpeechRecognition""",
    """AudioClassification""",
    """ImageClassification""",
    """LanguageModeling""",
    """QuestionAnsweringExtractive""",
    """Summarization""",
    """TaskTemplate""",
    """TextClassification""",
]

lowerCAmelCase__						=	get_logger(__name__)


lowerCAmelCase__						=	{
    AutomaticSpeechRecognition.task: AutomaticSpeechRecognition,
    AudioClassification.task: AudioClassification,
    ImageClassification.task: ImageClassification,
    LanguageModeling.task: LanguageModeling,
    QuestionAnsweringExtractive.task: QuestionAnsweringExtractive,
    Summarization.task: Summarization,
    TextClassification.task: TextClassification,
}



def    lowerCAmelCase__							(		SCREAMING_SNAKE_CASE_:							dict )     -> Optional[TaskTemplate]:




				'''simple docstring'''





				A__            =     task_template_dict.get("task" )
				if task_name is None:
								logger.warning(F'Couldn\'t find template for task \'{task_name}\'. Available templates: {list(SCREAMING_SNAKE_CASE_ )}' )
								return None
				A__            =     NAMEaTEMPLATE.get(SCREAMING_SNAKE_CASE_ )
				return template.from_dict(SCREAMING_SNAKE_CASE_ )

