
'''simple docstring'''







from ..utils import DummyObject, requires_backends
class  SCREAMING_SNAKE_CASE__       (  metaclass=__UpperCamelCase   ):
	lowercase__	    =							["torch", "transformers", "k_diffusion"]
	def __init__(				self  ,    *__UpperCamelCase  ,    **__UpperCamelCase			):



					'''simple docstring'''






					requires_backends(self  ,    ["""torch""", """transformers""", """k_diffusion"""]			)
	@classmethod
	def __lowerCamelCase    (				cls  ,    *__UpperCamelCase  ,    **__UpperCamelCase			):



					'''simple docstring'''






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

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



					'''simple docstring'''






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

'''simple docstring'''







def 				_snake_case (		lowercase						)       ->       int:
				if not isinstance(lowercase			,    lowercase						):
								__a       :     Union[str, Any]								=	F"""Input value of [number={number}] must be an integer"""
								raise TypeError(lowercase						)
				if number < 1:
								raise ValueError("""Input must be a positive integer"""						)
				return number * (2 * number - 1)


if __name__ == "__main__":
					import doctest

					doctest.testmod()