

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

from ..features import ClassLabel, Features, Image
from .base import TaskTemplate






@dataclass(frozen=lowerCAmelCase_      )
class 	__magic_name__    (			lowerCAmelCase_      ):
			SCREAMING_SNAKE_CASE							   =						field(default='image-classification'  ,    metadata={'include_in_asdict_even_if_is_default': True}      )
			SCREAMING_SNAKE_CASE							   =						Features({'image': Image()}      )
			SCREAMING_SNAKE_CASE							   =						Features({'labels': ClassLabel}      )
			SCREAMING_SNAKE_CASE							   =						"image"
			SCREAMING_SNAKE_CASE							   =						"labels"





			def 		__magic_name__    (		self					,  __snake_case					)   -> int:




						'''simple docstring'''
						if self.label_column not in features:
									raise ValueError(f'Column {self.label_column} is not present in features.'					)
						if not isinstance(features[self.label_column]					,  __snake_case					):
									raise ValueError(f'Column {self.label_column} is not a ClassLabel.'					)
						__a        =copy.deepcopy(self					)
						__a        =self.label_schema.copy()
						__a        =features[self.label_column]
						__a        =label_schema
						return task_template





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




						'''simple docstring'''
						return {
						    self.image_column: "image",
						    self.label_column: "labels",
						}









from __future__ import annotations






def        UpperCamelCase_(							_snake_case   :  int	):




			"""simple docstring"""






			__a        =str(_snake_case	)
			return len(_snake_case	) == 9 and set(_snake_case	) == set('123456789'	)






def        UpperCamelCase_(							):




			"""simple docstring"""






			for base_num in range(9999       ,     4999       ,     -1	):
						__a        =100002 * base_num
						if is_9_pandigital(_snake_case	):
									return candidate

			for base_num in range(333       ,     99       ,     -1	):
						__a        =1002003 * base_num
						if is_9_pandigital(_snake_case	):
									return candidate

			return None


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






