
"""simple docstring"""



from ..utils import DummyObject, requires_backends
class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							List[str]							=					["flax"]


				def __init__(					self	:			int				,     *UpperCAmelCase_	:			Union[str, Any]				,     **UpperCAmelCase_	:			Any  )		->  int:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Any				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			List[Any]  )		->  int:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Dict				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			Union[str, Any]  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Optional[int]							=					["flax"]


				def __init__(					self	:			int				,     *UpperCAmelCase_	:			List[Any]				,     **UpperCAmelCase_	:			Optional[Any]  )		->  Union[str, Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			List[Any]				,     *UpperCAmelCase_	:			Any				,     **UpperCAmelCase_	:			Tuple  )		->  int:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			int				,     *UpperCAmelCase_	:			Dict				,     **UpperCAmelCase_	:			Union[str, Any]  )		->  Dict:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							List[str]							=					["flax"]


				def __init__(					self	:			Any				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			Tuple  )		->  Union[str, Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			str				,     *UpperCAmelCase_	:			List[str]				,     **UpperCAmelCase_	:			List[Any]  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			List[Any]				,     *UpperCAmelCase_	:			Any				,     **UpperCAmelCase_	:			int  )		->  Tuple:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Union[str, Any]							=					["flax"]


				def __init__(					self	:			Union[str, Any]				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			List[Any]  )		->  Union[str, Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Tuple				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			str  )		->  Any:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Tuple				,     *UpperCAmelCase_	:			Optional[Any]				,     **UpperCAmelCase_	:			List[Any]  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							List[str]							=					["flax"]


				def __init__(					self	:			Any				,     *UpperCAmelCase_	:			List[Any]				,     **UpperCAmelCase_	:			Optional[Any]  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			int				,     *UpperCAmelCase_	:			Dict				,     **UpperCAmelCase_	:			Any  )		->  Dict:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			int				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			Any  )		->  Optional[int]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							List[str]							=					["flax"]


				def __init__(					self	:			List[Any]				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			List[str]  )		->  Union[str, Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Any				,     *UpperCAmelCase_	:			int				,     **UpperCAmelCase_	:			List[str]  )		->  Any:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Dict				,     *UpperCAmelCase_	:			int				,     **UpperCAmelCase_	:			str  )		->  Any:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							List[str]							=					["flax"]


				def __init__(					self	:			Union[str, Any]				,     *UpperCAmelCase_	:			Union[str, Any]				,     **UpperCAmelCase_	:			List[Any]  )		->  Dict:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			List[Any]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			int  )		->  Tuple:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			int				,     *UpperCAmelCase_	:			int				,     **UpperCAmelCase_	:			Tuple  )		->  Union[str, Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Any							=					["flax"]


				def __init__(					self	:			List[str]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			Any  )		->  Optional[Any]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Dict				,     *UpperCAmelCase_	:			int				,     **UpperCAmelCase_	:			List[Any]  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			List[Any]				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			Tuple  )		->  Dict:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							str							=					["flax"]


				def __init__(					self	:			Tuple				,     *UpperCAmelCase_	:			Optional[Any]				,     **UpperCAmelCase_	:			Optional[Any]  )		->  Any:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Tuple				,     *UpperCAmelCase_	:			Any				,     **UpperCAmelCase_	:			str  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Union[str, Any]				,     *UpperCAmelCase_	:			Dict				,     **UpperCAmelCase_	:			Any  )		->  Optional[int]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Tuple							=					["flax"]


				def __init__(					self	:			Tuple				,     *UpperCAmelCase_	:			Union[str, Any]				,     **UpperCAmelCase_	:			Tuple  )		->  str:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			str				,     *UpperCAmelCase_	:			Union[str, Any]				,     **UpperCAmelCase_	:			Any  )		->  List[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Optional[int]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			Tuple  )		->  List[str]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							str							=					["flax"]


				def __init__(					self	:			int				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			List[Any]  )		->  List[str]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Optional[int]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			List[Any]  )		->  Optional[Any]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Optional[Any]				,     *UpperCAmelCase_	:			Any				,     **UpperCAmelCase_	:			Tuple  )		->  Optional[int]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Optional[int]							=					["flax"]


				def __init__(					self	:			Dict				,     *UpperCAmelCase_	:			List[Any]				,     **UpperCAmelCase_	:			Union[str, Any]  )		->  Optional[int]:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			Union[str, Any]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			Optional[Any]  )		->  Optional[int]:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Optional[int]				,     *UpperCAmelCase_	:			Tuple				,     **UpperCAmelCase_	:			Union[str, Any]  )		->  Any:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )






class        _SCREAMING_SNAKE_CASE  (  metaclass=UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							Optional[int]							=					["flax"]


				def __init__(					self	:			List[Any]				,     *UpperCAmelCase_	:			List[str]				,     **UpperCAmelCase_	:			Tuple  )		->  Any:







											"""simple docstring"""




											requires_backends(self				,     ['flax']  )


				@classmethod
				def 				__lowerCamelCase	(					cls	:			int				,     *UpperCAmelCase_	:			Optional[Any]				,     **UpperCAmelCase_	:			Any  )		->  Dict:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )







				@classmethod
				def 				__lowerCamelCase	(					cls	:			Any				,     *UpperCAmelCase_	:			Optional[int]				,     **UpperCAmelCase_	:			Union[str, Any]  )		->  int:







											"""simple docstring"""




											requires_backends(cls				,     ['flax']  )








"""simple docstring"""



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

from ..features import ClassLabel, Features, Image
from .base import TaskTemplate
@dataclass(frozen=UpperCAmelCase							)
class        _SCREAMING_SNAKE_CASE  (  UpperCAmelCase							):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE_:							str							=					field(default="image-classification"      ,				metadata={"include_in_asdict_even_if_is_default": True}							)
				SCREAMING_SNAKE_CASE_:							ClassVar[Features]							=					Features({"image": Image()}							)
				SCREAMING_SNAKE_CASE_:							ClassVar[Features]							=					Features({"labels": ClassLabel}							)
				SCREAMING_SNAKE_CASE_:							str							=					"image"
				SCREAMING_SNAKE_CASE_:							str							=					"labels"


				def 				__lowerCamelCase	(					self	:			str				,     UpperCAmelCase_	:			Optional[Any]  )		->  Dict:







											"""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]				,     UpperCAmelCase_  ):
																		raise ValueError(F"""Column {self.label_column} is not a ClassLabel."""  )
											_lowerCAmelCase  	=			copy.deepcopy(self  )
											_lowerCAmelCase  	=			self.label_schema.copy()
											_lowerCAmelCase  	=			features[self.label_column]
											_lowerCAmelCase  	=			label_schema
											return task_template







				@property
				def 				__lowerCamelCase	(					self	:			Union[str, Any]  )		->  Dict[str, str]:







											"""simple docstring"""




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






