
"""simple docstring"""




from ..utils import DummyObject, requires_backends


class 			__magic_name__       (       metaclass=SCREAMING_SNAKE_CASE__ ):
       UpperCamelCase_   =		['''torch''', '''torchsde''']
       def __init__(     self ,				*A_ ,				**A_       )     ->	str:





         """simple docstring"""




         requires_backends(self ,				['''torch''', '''torchsde''']       )
       @classmethod
       def 							lowercase_							(     cls ,				*A_ ,				**A_       )     ->	Optional[Any]:





         """simple docstring"""




         requires_backends(cls ,				['''torch''', '''torchsde''']       )



       @classmethod
       def 							lowercase_							(     cls ,				*A_ ,				**A_       )     ->	Tuple:





         """simple docstring"""




         requires_backends(cls ,				['''torch''', '''torchsde''']       )


"""simple docstring"""




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



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




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



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


if __name__ == "__main__":
  import doctest

  doctest.testmod()
