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

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



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



   @property
   def        UpperCAmelCase__							(					self : int )				->  Optional[int]:




         '''simple docstring'''




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









from collections.abc import Sequence




def 		lowerCAmelCase_ (						lowerCamelCase = None ):
				if nums is None or not nums:
								raise ValueError("""Input sequence should not be empty""" )

				__magic_name__						:						str										=nums[0]
				for i in range(1						,  len(lowerCamelCase ) ):
								__magic_name__						:						Any										=nums[i]
								__magic_name__						:						Dict										=max(lowerCamelCase						,  ans + num						,  lowerCamelCase )

				return ans


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							# Try on a sample input from the user
							UpperCAmelCase_		:					List[str]          =  int(input("Enter number of elements : ").strip())
							UpperCAmelCase_		:					Tuple          =  list(map(int, input("\nEnter the numbers : ").strip().split()))[:n]
							print(max_subsequence_sum(array))




