





import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


snake_case_				=			HUGGINGFACE_HUB_CACHE


snake_case_				=			'config.json'
snake_case_				=			'diffusion_pytorch_model.bin'
snake_case_				=			'diffusion_flax_model.msgpack'
snake_case_				=			'model.onnx'
snake_case_				=			'diffusion_pytorch_model.safetensors'
snake_case_				=			'weights.pb'
snake_case_				=			'https://huggingface.co'
snake_case_				=			default_cache_path
snake_case_				=			'diffusers_modules'
snake_case_				=			os.getenv('HF_MODULES_CACHE', os.path.join(hf_cache_home, 'modules'))
snake_case_				=			['fp16', 'non-ema']
snake_case_				=			'.self_attn'



"""simple docstring"""





from collections import namedtuple

_a		       =							namedtuple('from_to', 'from_ to')

_a		       =							{
    'cubicmeter': from_to(1, 1),
    'litre': from_to(0.001, 1_000),
    'kilolitre': from_to(1, 1),
    'gallon': from_to(0.0_0454, 264.172),
    'cubicyard': from_to(0.7_6455, 1.3_0795),
    'cubicfoot': from_to(0.028, 35.3147),
    'cup': from_to(0.0_0023_6588, 4226.75),
}







def 	__a     (		__lowerCamelCase,		__lowerCamelCase,		__lowerCamelCase  ):
   if from_type not in METRIC_CONVERSION:
      raise ValueError(
          f"""Invalid 'from_type' value: {from_type!r}  Supported values are:\n"""
          + ", ".join(__lowerCamelCase  )  )
   if to_type not in METRIC_CONVERSION:
      raise ValueError(
          f"""Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"""
          + ", ".join(__lowerCamelCase  )  )
   return value * METRIC_CONVERSION[from_type].from_ * METRIC_CONVERSION[to_type].to


if __name__ == "__main__":
    import doctest

    doctest.testmod()


