





import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


__lowercase       :Optional[Any]       =  HUGGINGFACE_HUB_CACHE


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






from __future__ import annotations







def       UpperCAmelCase							(     _lowerCamelCase      :  list[int | float]			,   _lowerCamelCase      :  int			,   _lowerCamelCase      :  int     ):





						'''simple docstring'''


						if len(_lowerCamelCase     ) == 0:
												raise ValueError("find_max() arg is an empty sequence"     )
						if (
						    left >= len(_lowerCamelCase     )
						    or left < -len(_lowerCamelCase     )
						    or right >= len(_lowerCamelCase     )
						    or right < -len(_lowerCamelCase     )
						):
												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__     :				List[Any]   =					find_max(_lowerCamelCase			,   _lowerCamelCase			,   _lowerCamelCase     )  # find max in range[left, mid]
						SCREAMING_SNAKE_CASE__     :				Optional[int]   =					find_max(_lowerCamelCase			,   mid + 1			,   _lowerCamelCase     )  # 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)