


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

from ..features import Features, Value
from .base import TaskTemplate
@dataclass(frozen=lowercase__      )
class 			SCREAMING_SNAKE_CASE__  (    lowercase__      ):
      # `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
      snake_case__    :					str					       =						field(default='''summarization'''						,   metadata={'''include_in_asdict_even_if_is_default''': True}      )
      snake_case__    :					ClassVar[Features]					       =						Features({'''text''': Value('''string'''      )}      )
      snake_case__    :					ClassVar[Features]					       =						Features({'''summary''': Value('''string'''      )}      )
      snake_case__    :					str					       =						"text"
      snake_case__    :					str					       =						"summary"
      @property
      def 	SCREAMING_SNAKE_CASE							(	self    :	Tuple					)		->      Dict[str, str]:
             return {self.text_column: "text", self.summary_column: "summary"}






def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		bool:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       if len(__A    ) == 1:
              return True
       a_ :		Tuple							=  series[1] - series[0]
       for index in range(len(__A    ) - 1    ):
              if series[index + 1] - series[index] != common_diff:
                     return False
       return True







def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		float:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       a_ :		str							=  0
       for val in series:
              answer += val
       return answer / len(__A    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


