





class  _lowerCamelCase       :



      """simple docstring"""






      def __init__(       self ,  UpperCAmelCase      )				->      List[Any]:






        '''simple docstring'''






        __snake_case      : List[str]						=				n
        __snake_case      : Union[str, Any]						=				[None] * self.n
        __snake_case      : List[str]						=				0  # index of the first element
        __snake_case      : Any						=				0
        __snake_case      : Any						=				0







      def __len__(       self      )				->      Union[str, Any]:






        '''simple docstring'''






        return self.size







      def   UpperCAmelCase						(       self      )				->      Union[str, Any]:






        '''simple docstring'''






        return self.size == 0







      def   UpperCAmelCase						(       self      )				->      Optional[Any]:






        '''simple docstring'''






        return False if self.is_empty() else self.array[self.front]







      def   UpperCAmelCase						(       self ,  UpperCAmelCase      )				->      List[Any]:






        '''simple docstring'''






        if self.size >= self.n:
          raise Exception("QUEUE IS FULL"      )

        __snake_case      : Optional[Any]						=				data
        __snake_case      : Tuple						=				(self.rear + 1) % self.n
        self.size += 1
        return self







      def   UpperCAmelCase						(       self      )				->      List[Any]:






        '''simple docstring'''






        if self.size == 0:
          raise Exception("UNDERFLOW"      )

        __snake_case      : Any						=				self.array[self.front]
        __snake_case      : List[Any]						=				None
        __snake_case      : str						=				(self.front + 1) % self.n
        self.size -= 1
        return temp





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

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







@dataclass(frozen=lowercase__)
class 			_lowercase (							lowercase__):


       """simple docstring"""




       A__											=			field(default="automatic-speech-recognition"							,  metadata={"include_in_asdict_even_if_is_default": True})
       A__											=			Features({"audio": Audio()})
       A__											=			Features({"transcription": Value("string")})
       A__											=			"audio"
       A__											=			"transcription"





       def 						lowerCAmelCase     (   self							:			Any					,      __lowerCamelCase							:			int       ):


             '''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."       )
             lowerCamelCase__		:				Tuple    =  copy.deepcopy(self       )
             lowerCamelCase__		:				Tuple    =  self.input_schema.copy()
             lowerCamelCase__		:				Optional[int]    =  features[self.audio_column]
             lowerCamelCase__		:				int    =  input_schema
             return task_template





       @property
       def 						lowerCAmelCase     (   self							:			int       ):


             '''simple docstring'''



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


