





"""simple docstring"""
import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

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






@dataclass(frozen=A  )
class 					_SCREAMING_SNAKE_CASE(   A  ):
       SCREAMING_SNAKE_CASE_   :      str							=  field(default='''automatic-speech-recognition'''    ,	metadata={'''include_in_asdict_even_if_is_default''': True}  )
       SCREAMING_SNAKE_CASE_   :      ClassVar[Features]							=  Features({'''audio''': Audio()}  )
       SCREAMING_SNAKE_CASE_   :      ClassVar[Features]							=  Features({'''transcription''': Value('''string'''  )}  )
       SCREAMING_SNAKE_CASE_   :      str							=  "audio"
       SCREAMING_SNAKE_CASE_   :      str							=  "transcription"




       def     _UpperCamelCase     (						self		,SCREAMING_SNAKE_CASE__							)			->      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]		,SCREAMING_SNAKE_CASE__							):
                   raise ValueError(f'''Column {self.audio_column} is not an Audio type.'''							)
             __SCREAMING_SNAKE_CASE   :Optional[int]						=  copy.deepcopy(self							)
             __SCREAMING_SNAKE_CASE   :Optional[int]						=  self.input_schema.copy()
             __SCREAMING_SNAKE_CASE   :Any						=  features[self.audio_column]
             __SCREAMING_SNAKE_CASE   :Dict						=  input_schema
             return task_template




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





             """simple docstring"""






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






"""simple docstring"""
def      __lowerCamelCase   (							a_     :		int							)			->      bool:
      if not isinstance(a_ ,   a_							):
            __SCREAMING_SNAKE_CASE   :int						=  f'''Input value of [number={number}] must be an integer'''
            raise TypeError(a_							)
      if number < 0:
            return False
      __SCREAMING_SNAKE_CASE   :Any						=  number * number
      while number > 0:
            if number % 10 != number_square % 10:
                  return False
            number //= 10
            number_square //= 10
      return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()