
import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


_lowercase											=    HUGGINGFACE_HUB_CACHE


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


from __future__ import annotations
def 							SCREAMING_SNAKE_CASE_	(					UpperCAmelCase_	:     list[int | float]			,							UpperCAmelCase_	:     int			,							UpperCAmelCase_	:     int				)			->						int | float:
       if len(UpperCAmelCase_				) == 0:
              raise ValueError('''find_max() arg is an empty sequence'''				)
       if (
           left >= len(UpperCAmelCase_				)
           or left < -len(UpperCAmelCase_				)
           or right >= len(UpperCAmelCase_				)
           or right < -len(UpperCAmelCase_				)
       ):
              raise IndexError('''list index out of range'''				)
       if left == right:
              return nums[left]
       SCREAMING_SNAKE_CASE_							:				Optional[int]		=(left + right) >> 1  # the middle
       SCREAMING_SNAKE_CASE_							:				Dict		=find_max(UpperCAmelCase_			,							UpperCAmelCase_			,							UpperCAmelCase_				)  # find max in range[left, mid]
       SCREAMING_SNAKE_CASE_							:				Dict		=find_max(UpperCAmelCase_			,							mid + 1			,							UpperCAmelCase_				)  # find max in range[mid + 1, right]

       return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)
