


from dataclasses import dataclass
from typing import List, Optional, Union

import numpy as np
import PIL

from ...utils import BaseOutput, is_invisible_watermark_available, is_torch_available, is_transformers_available





@dataclass
class 					snake_case__  ( UpperCamelCase_       ):
 UpperCAmelCase   :							List[str]         = 42


if is_transformers_available() and is_torch_available() and is_invisible_watermark_available():
 from .pipeline_stable_diffusion_xl import StableDiffusionXLPipeline
 from .pipeline_stable_diffusion_xl_imgaimg import StableDiffusionXLImgaImgPipeline






from __future__ import annotations





def 						_lowerCamelCase		(							SCREAMING_SNAKE_CASE_				: list      ):






							"""simple docstring"""



							a_       :   Tuple			=	sorted(SCREAMING_SNAKE_CASE_      )
							a_       :   Tuple			=	len(SCREAMING_SNAKE_CASE_      )
							a_       :   Tuple			=	length >> 1
							return (
							    (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
							    if length % 2 == 0
							    else sorted_list[mid_index]
							)





def 						_lowerCamelCase		(							):






							"""simple docstring"""



							import doctest

							doctest.testmod()


if __name__ == "__main__":
	main()


