

'''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=_snake_case     )
class    A__ ( _snake_case     ):
    lowercase		   =						field(default="image-classification"  ,  metadata={"include_in_asdict_even_if_is_default": True}     )
    lowercase		   =						Features({"image": Image()}     )
    lowercase		   =						Features({"labels": ClassLabel}     )
    lowercase		   =						"image"
    lowercase		   =						"labels"



    def    snake_case_     (   self						,			UpperCamelCase__    )  -> Any:





           '''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.'''    )
           A_		   = copy.deepcopy(self    )
           A_		   = self.label_schema.copy()
           A_		   = features[self.label_column]
           A_		   = label_schema
           return task_template







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





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



'''simple docstring'''







def  UpperCAmelCase__      ( UpperCAmelCase__ = 10_00			)     ->     int:
       return sum(2 * a * ((a - 1) // 2) for a in range(3,    n + 1			)			)


if __name__ == "__main__":
      print(solution())
