


'''simple docstring'''






from ..utils import DummyObject, requires_backends




class 	a__       (							metaclass=a__						):





							'''simple docstring'''






							lowercase__    :     int					=   ["transformers", "torch", "note_seq"]







							def __init__(	self      ,					*lowerCamelCase_      ,					**lowerCamelCase_     ) ->							Tuple:
														requires_backends(self      ,					['''transformers''', '''torch''', '''note_seq''']     )







							@classmethod
							def 						__SCREAMING_SNAKE_CASE							(	cls      ,					*lowerCamelCase_      ,					**lowerCamelCase_     ) ->							int:
														requires_backends(cls      ,					['''transformers''', '''torch''', '''note_seq''']     )







							@classmethod
							def 						__SCREAMING_SNAKE_CASE							(	cls      ,					*lowerCamelCase_      ,					**lowerCamelCase_     ) ->							List[str]:
														requires_backends(cls      ,					['''transformers''', '''torch''', '''note_seq''']     )



'''simple docstring'''






def       _snake_case     (  A )		->					bool:
							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
							lowerCAmelCase__      =			series[1] - series[0]
							for index in range(len(A ) - 1 ):
														if series[index + 1] - series[index] != common_diff:
																					return False
							return True


def       _snake_case     (  A )		->					float:
							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''' )
							lowerCAmelCase__      =			0
							for val in series:
														answer += val
							return answer / len(A )


if __name__ == "__main__":
		import doctest

		doctest.testmod()