






from ..utils import DummyObject, requires_backends

class      snake_case__       (metaclass=A__	):







						"""simple docstring"""




						__lowerCAmelCase  :List[str]			      =  ["torch", "transformers", "invisible_watermark"]

						def __init__(     self      ,     *__lowercase      ,     **__lowercase						)      ->   List[Any]:
									"""simple docstring"""




									requires_backends(self      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)

						@classmethod
						def 							SCREAMING_SNAKE_CASE__(     cls      ,     *__lowercase      ,     **__lowercase						)      ->   Optional[int]:
									"""simple docstring"""




									requires_backends(cls      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)

						@classmethod
						def 							SCREAMING_SNAKE_CASE__(     cls      ,     *__lowercase      ,     **__lowercase						)      ->   Optional[Any]:
									"""simple docstring"""




									requires_backends(cls      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)




class      snake_case__       (metaclass=A__	):







						"""simple docstring"""




						__lowerCAmelCase  :Tuple			      =  ["torch", "transformers", "invisible_watermark"]

						def __init__(     self      ,     *__lowercase      ,     **__lowercase						)      ->   Any:
									"""simple docstring"""




									requires_backends(self      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)

						@classmethod
						def 							SCREAMING_SNAKE_CASE__(     cls      ,     *__lowercase      ,     **__lowercase						)      ->   str:
									"""simple docstring"""




									requires_backends(cls      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)

						@classmethod
						def 							SCREAMING_SNAKE_CASE__(     cls      ,     *__lowercase      ,     **__lowercase						)      ->   Any:
									"""simple docstring"""




									requires_backends(cls      ,     ["""torch""", """transformers""", """invisible_watermark"""]						)









def 			lowerCAmelCase_  (						_lowercase       :     list)							-> bool:







			"""simple docstring"""
			if not isinstance(_lowercase		,     _lowercase):
						raise ValueError("""Input series is not valid, valid series - [1, 2/3, 2]""")
			if len(_lowercase) == 0:
						raise ValueError("""Input list must be a non empty list""")
			if len(_lowercase) == 1 and series[0] != 0:
						return True
			a__     :		Tuple		 =						[]
			a__     :		Union[str, Any]		 =						len(_lowercase)
			for i in range(0		,     _lowercase):
						if series[i] == 0:
									raise ValueError("""Input series cannot have 0 as an element""")
						rec_series.append(1 / series[i])
			a__     :		Dict		 =						rec_series[1] - rec_series[0]
			for index in range(2		,     _lowercase):
						if rec_series[index] - rec_series[index - 1] != common_diff:
									return False
			return True

def 			lowerCAmelCase_  (						_lowercase       :     list)							-> float:







			"""simple docstring"""
			if not isinstance(_lowercase		,     _lowercase):
						raise ValueError("""Input series is not valid, valid series - [2, 4, 6]""")
			if len(_lowercase) == 0:
						raise ValueError("""Input list must be a non empty list""")
			a__     :		Optional[Any]		 =						0
			for val in series:
						answer += 1 / val
			return len(_lowercase) / answer


if __name__ == "__main__":
		import doctest

		doctest.testmod()




