





import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, Features, Value
from .base import TaskTemplate

@dataclass(frozen=lowerCAmelCase_       )
class 		UpperCamelCase__			(				lowerCAmelCase_       ):



     '''simple docstring'''

     __snake_case   :     str		     =      field(default="automatic-speech-recognition"							,				metadata={"include_in_asdict_even_if_is_default": True}       )
     __snake_case   :     ClassVar[Features]		     =      Features({"audio": Audio()}       )
     __snake_case   :     ClassVar[Features]		     =      Features({"transcription": Value("string"       )}       )
     __snake_case   :     str		     =      "audio"
     __snake_case   :     str		     =      "transcription"






     def     SCREAMING_SNAKE_CASE__  (							self						:   Any						,lowerCamelCase__						:   List[Any]	)					->		Optional[Any]:




           '''simple docstring'''


           if self.audio_column not in features:
                 raise ValueError(F"""Column {self.audio_column} is not present in features."""	)
           if not isinstance(features[self.audio_column]						,lowerCamelCase__	):
                 raise ValueError(F"""Column {self.audio_column} is not an Audio type."""	)
           SCREAMING_SNAKE_CASE		=						copy.deepcopy(self	)
           SCREAMING_SNAKE_CASE		=						self.input_schema.copy()
           SCREAMING_SNAKE_CASE		=						features[self.audio_column]
           SCREAMING_SNAKE_CASE		=						input_schema
           return task_template






     @property
     def     SCREAMING_SNAKE_CASE__  (							self						:   str	)					->		Dict[str, str]:




           '''simple docstring'''


           return {self.audio_column: "audio", self.transcription_column: "transcription"}









from __future__ import annotations



def        __lowercase       (				_SCREAMING_SNAKE_CASE			,						_SCREAMING_SNAKE_CASE     )			->       list[int]:


      '''simple docstring'''


      SCREAMING_SNAKE_CASE		=						0
      SCREAMING_SNAKE_CASE		=						len(_SCREAMING_SNAKE_CASE     ) - 1

      while i < j:
            if nums[i] + nums[j] == target:
                  return [i, j]
            elif nums[i] + nums[j] < target:
                  SCREAMING_SNAKE_CASE		=						i + 1
            else:
                  SCREAMING_SNAKE_CASE		=						j - 1

      return []


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      print(F'''{two_pointer([2, 7, 1_1, 1_5], 9) = }''')


