





from functools import lru_cache





@lru_cache
def      lowerCAmelCase_ (       __a		)     ->		int:







  """simple docstring"""





  if num < 0:
    raise ValueError("Number should not be negative."		)

  return 1 if num in (0, 1) else num * factorial(num - 1		)


if __name__ == "__main__":
     import doctest

     doctest.testmod()



'''simple docstring'''







from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
					from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline

