



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

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

@dataclass(frozen=SCREAMING_SNAKE_CASE)
class  __snake_case      (   SCREAMING_SNAKE_CASE):







							'''simple docstring'''






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


							def _a      (							self  ,  a_		):
											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]  ,  a_		):
															raise ValueError(F'''Column {self.audio_column} is not an Audio type.'''		)
											a__				      =		copy.deepcopy(self		)
											a__				      =		self.input_schema.copy()
											a__				      =		features[self.audio_column]
											a__				      =		input_schema
											return task_template







							@property
							def _a      (							self		):
											return {self.audio_column: "audio", self.transcription_column: "transcription"}






def 			A_      (	__a     :				int ,		__a     :				int		):

				"""simple docstring"""
				return abs(__a		) if a == 0 else greatest_common_divisor(b % a ,		__a		)

def 			A_      (	__a     :				int ,		__a     :				int		):

				"""simple docstring"""
				while y:  # --> when y=0 then loop will terminate and return x as final GCD.
								a__      ,			a__				      =		y, x % y
				return abs(__a		)

def 			A_      (	):

				"""simple docstring"""
				try:
								a__				      =		input("""Enter two integers separated by comma (,): """		).split(""","""		)
								a__				      =		int(nums[0]		)
								a__				      =		int(nums[1]		)
								print(
								    F'''greatest_common_divisor({num_a}, {num_a}) = '''
								    F'''{greatest_common_divisor(__a ,		__a		)}'''		)
								print(F'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(__a ,		__a		)}'''		)
				except (IndexError, UnboundLocalError, ValueError):
								print("""Wrong input"""		)


if __name__ == "__main__":
	main()

