




"""simple docstring"""

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				(							A__       ):

				'''simple docstring'''




				UpperCamelCase__		     =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











"""simple docstring"""

def 				a (						__snake_case     :				int  ):



				'''simple docstring'''





				if not isinstance(__snake_case,    __snake_case  ) or number < 0:
								raise ValueError('''Input must be a non-negative integer'''  )

				UpperCAmelCase_					:Optional[Any]      			=      number & ~(number - 1)
				UpperCAmelCase_					:List[str]      			=      0
				while intermediate:
								intermediate >>= 1
								index += 1
				return index - 1


if __name__ == "__main__":
						import doctest

						doctest.testmod(verbose=True)


