
"""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=_lowerCamelCase)
class 			A__	(     _lowerCamelCase):
		A_						:	Dict           =     field(default='automatic-speech-recognition'	,					metadata={'include_in_asdict_even_if_is_default': True})
		A_						:	Optional[int]           =     Features({'audio': Audio()})
		A_						:	Tuple           =     Features({'transcription': Value('string')})
		A_						:	Union[str, Any]           =     'audio'
		A_						:	Optional[Any]           =     'transcription'

		def 							__lowerCamelCase							(				self	,		_SCREAMING_SNAKE_CASE			):
			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."			)
			__lowerCAmelCase      :						Union[str, Any]						      =				copy.deepcopy(self			)
			__lowerCAmelCase      :						Tuple						      =				self.input_schema.copy()
			__lowerCAmelCase      :						List[Any]						      =				features[self.audio_column]
			__lowerCAmelCase      :						List[str]						      =				input_schema
			return task_template







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

"""simple docstring"""







from __future__ import annotations
def    __lowerCAmelCase    (_UpperCamelCase		):
	__lowerCAmelCase      :						List[str]						      =				str(_UpperCamelCase		)
	return len(_UpperCamelCase		) == 9 and set(_UpperCamelCase		) == set('123456789'		)
def    __lowerCAmelCase    ():
	for base_num in range(9999	,  4999	,  -1		):
		__lowerCAmelCase      :						Union[str, Any]						      =				10_0002 * base_num
		if is_9_pandigital(_UpperCamelCase		):
			return candidate

	for base_num in range(333	,  99	,  -1		):
		__lowerCAmelCase      :						Dict						      =				100_2003 * base_num
		if is_9_pandigital(_UpperCamelCase		):
			return candidate

	return None


if __name__ == "__main__":
							print(f'{solution() = }')