






"""simple docstring"""







def      UpperCamelCase       ( _A )     ->       bool:


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


def      UpperCamelCase       ( _A )     ->       float:


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


if __name__ == "__main__":
				import doctest

				doctest.testmod()

"""simple docstring"""






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

from ..features import Features, Sequence, Value
from .base import TaskTemplate





@dataclass(frozen=lowerCAmelCase      )
class 					_A		(			lowerCAmelCase      ):
      # `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
      snake_case__     :  str				    =      field(default='question-answering-extractive'    ,       metadata={'include_in_asdict_even_if_is_default': True}      )
      snake_case__     :  ClassVar[Features]				    =      Features({'question': Value('string'      ), 'context': Value('string'      )}      )
      snake_case__     :  ClassVar[Features]				    =      Features(
          {
              'answers': Sequence(
                  {
                      'text': Value('string'      ),
                      'answer_start': Value('int32'      ),
                  }      )
          }      )
      snake_case__     :  str				    =      "question"
      snake_case__     :  str				    =      "context"
      snake_case__     :  str				    =      "answers"

      @property
      def 							A__			(		self		):







            """simple docstring"""



            return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}



