
import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowercase  : List[Any]						   =							HUGGINGFACE_HUB_CACHE


lowercase  : Any						   =							"""config.json"""
lowercase  : Optional[Any]						   =							"""diffusion_pytorch_model.bin"""
lowercase  : Dict						   =							"""diffusion_flax_model.msgpack"""
lowercase  : Tuple						   =							"""model.onnx"""
lowercase  : Optional[int]						   =							"""diffusion_pytorch_model.safetensors"""
lowercase  : Any						   =							"""weights.pb"""
lowercase  : Union[str, Any]						   =							"""https://huggingface.co"""
lowercase  : str						   =							default_cache_path
lowercase  : Dict						   =							"""diffusers_modules"""
lowercase  : str						   =							os.getenv("""HF_MODULES_CACHE""", os.path.join(hf_cache_home, """modules"""))
lowercase  : Tuple						   =							["""fp16""", """non-ema"""]
lowercase  : Union[str, Any]						   =							""".self_attn"""


def 						_snake_case(  SCREAMING_SNAKE_CASE__    )			->   int:
       assert (
           isinstance(SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    ) and number_of_steps > 0
       ), f"number_of_steps needs to be positive integer, your input {number_of_steps}"
       if number_of_steps == 1:
              return 1
       lowercase     ,      lowercase							:					Tuple	     =				1, 1
       for _ in range(number_of_steps - 1    ):
              lowercase     ,      lowercase							:					str	     =				current + previous, current
       return current


if __name__ == "__main__":
  import doctest

  doctest.testmod()
