





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






def  SCREAMING_SNAKE_CASE__							(				UpperCamelCase__:							list			):
		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"""			)
		SCREAMING_SNAKE_CASE__								=					0
		for val in series:
				answer += 1 / val
		return len(UpperCamelCase__			) / answer


if __name__ == "__main__":
	import doctest

	doctest.testmod()


'''simple docstring'''






from ..utils import DummyObject, requires_backends
class 	SCREAMING_SNAKE_CASE__			(				metaclass=_UpperCAmelCase      ):
    _A			    =							["torch", "transformers", "invisible_watermark"]




    def __init__(					self				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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




    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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







    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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






class 	SCREAMING_SNAKE_CASE__			(				metaclass=_UpperCAmelCase      ):
    _A			    =							["torch", "transformers", "invisible_watermark"]




    def __init__(					self				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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




    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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







    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






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

