"""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 		__A							(				_UpperCAmelCase	):
     _UpperCamelCase	      =	field(default="image-classification"					,			metadata={"include_in_asdict_even_if_is_default": True}	)
     _UpperCamelCase	      =	Features({"image": Image()}	)
     _UpperCamelCase	      =	Features({"labels": ClassLabel}	)
     _UpperCamelCase	      =	"image"
     _UpperCamelCase	      =	"labels"






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






     @property
     def 					__A						(	self						):
       return {
           self.image_column: "image",
           self.label_column: "labels",
       }





"""simple docstring"""




def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: int			) ->   bool:
  return sum(i for i in range(1    ,number // 2 + 1			) if number % i == 0			) == number


if __name__ == "__main__":
     print('Program to check whether a number is a Perfect number or not...')
     _a   :	int 					=     int(input('Enter number: ').strip())
     print(F"""{number} is {"" if perfect(number) else "not "}a Perfect Number.""")




