





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible


class        __SCREAMING_SNAKE_CASE      (			unittest.TestCase ):







       def 						__lowerCamelCase   (				self					:     Dict      )       ->Dict:
          lowerCamelCase__       :						int        =							[
              '''safety_checker/pytorch_model.bin''',
              '''safety_checker/model.safetensors''',
              '''vae/diffusion_pytorch_model.bin''',
              '''vae/diffusion_pytorch_model.safetensors''',
              '''text_encoder/pytorch_model.bin''',
              '''text_encoder/model.safetensors''',
              '''unet/diffusion_pytorch_model.bin''',
              '''unet/diffusion_pytorch_model.safetensors''',
          ]
          self.assertTrue(is_safetensors_compatible(lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Any      )       ->List[Any]:
          lowerCamelCase__       :						Union[str, Any]        =							[
              '''unet/diffusion_pytorch_model.bin''',
              '''unet/diffusion_pytorch_model.safetensors''',
          ]
          self.assertTrue(is_safetensors_compatible(lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Tuple      )       ->int:
          lowerCamelCase__       :						str        =							[
              '''safety_checker/pytorch_model.bin''',
              '''safety_checker/model.safetensors''',
              '''vae/diffusion_pytorch_model.bin''',
              '''vae/diffusion_pytorch_model.safetensors''',
              '''text_encoder/pytorch_model.bin''',
              '''text_encoder/model.safetensors''',
              '''unet/diffusion_pytorch_model.bin''',
              # Removed: 'unet/diffusion_pytorch_model.safetensors',
          ]
          self.assertFalse(is_safetensors_compatible(lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     int      )       ->List[Any]:
          lowerCamelCase__       :						Any        =							[
              '''text_encoder/pytorch_model.bin''',
              '''text_encoder/model.safetensors''',
          ]
          self.assertTrue(is_safetensors_compatible(lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Union[str, Any]      )       ->Optional[Any]:
          lowerCamelCase__       :						Any        =							[
              '''safety_checker/pytorch_model.bin''',
              '''safety_checker/model.safetensors''',
              '''vae/diffusion_pytorch_model.bin''',
              '''vae/diffusion_pytorch_model.safetensors''',
              '''text_encoder/pytorch_model.bin''',
              # Removed: 'text_encoder/model.safetensors',
              '''unet/diffusion_pytorch_model.bin''',
              '''unet/diffusion_pytorch_model.safetensors''',
          ]
          self.assertFalse(is_safetensors_compatible(lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Any      )       ->Optional[Any]:
          lowerCamelCase__       :						str        =							[
              '''safety_checker/pytorch_model.fp16.bin''',
              '''safety_checker/model.fp16.safetensors''',
              '''vae/diffusion_pytorch_model.fp16.bin''',
              '''vae/diffusion_pytorch_model.fp16.safetensors''',
              '''text_encoder/pytorch_model.fp16.bin''',
              '''text_encoder/model.fp16.safetensors''',
              '''unet/diffusion_pytorch_model.fp16.bin''',
              '''unet/diffusion_pytorch_model.fp16.safetensors''',
          ]
          lowerCamelCase__       :						int        =							'''fp16'''
          self.assertTrue(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     int      )       ->List[Any]:
          lowerCamelCase__       :						Optional[Any]        =							[
              '''unet/diffusion_pytorch_model.fp16.bin''',
              '''unet/diffusion_pytorch_model.fp16.safetensors''',
          ]
          lowerCamelCase__       :						str        =							'''fp16'''
          self.assertTrue(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Optional[Any]      )       ->int:
          lowerCamelCase__       :						int        =							[
              '''unet/diffusion_pytorch_model.bin''',
              '''unet/diffusion_pytorch_model.safetensors''',
          ]
          lowerCamelCase__       :						Optional[Any]        =							'''fp16'''
          self.assertTrue(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Optional[int]      )       ->Any:
          lowerCamelCase__       :						List[Any]        =							[
              '''safety_checker/pytorch_model.fp16.bin''',
              '''safety_checker/model.fp16.safetensors''',
              '''vae/diffusion_pytorch_model.fp16.bin''',
              '''vae/diffusion_pytorch_model.fp16.safetensors''',
              '''text_encoder/pytorch_model.fp16.bin''',
              '''text_encoder/model.fp16.safetensors''',
              '''unet/diffusion_pytorch_model.fp16.bin''',
              # Removed: 'unet/diffusion_pytorch_model.fp16.safetensors',
          ]
          lowerCamelCase__       :						List[Any]        =							'''fp16'''
          self.assertFalse(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     List[str]      )       ->Dict:
          lowerCamelCase__       :						List[str]        =							[
              '''text_encoder/pytorch_model.fp16.bin''',
              '''text_encoder/model.fp16.safetensors''',
          ]
          lowerCamelCase__       :						int        =							'''fp16'''
          self.assertTrue(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Optional[int]      )       ->Union[str, Any]:
          lowerCamelCase__       :						Optional[int]        =							[
              '''text_encoder/pytorch_model.bin''',
              '''text_encoder/model.safetensors''',
          ]
          lowerCamelCase__       :						Tuple        =							'''fp16'''
          self.assertTrue(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )







       def 						__lowerCamelCase   (				self					:     Optional[int]      )       ->Tuple:
          lowerCamelCase__       :						Optional[Any]        =							[
              '''safety_checker/pytorch_model.fp16.bin''',
              '''safety_checker/model.fp16.safetensors''',
              '''vae/diffusion_pytorch_model.fp16.bin''',
              '''vae/diffusion_pytorch_model.fp16.safetensors''',
              '''text_encoder/pytorch_model.fp16.bin''',
              # 'text_encoder/model.fp16.safetensors',
              '''unet/diffusion_pytorch_model.fp16.bin''',
              '''unet/diffusion_pytorch_model.fp16.safetensors''',
          ]
          lowerCamelCase__       :						str        =							'''fp16'''
          self.assertFalse(is_safetensors_compatible(lowercase_		, variant=lowercase_      )      )










def 	_a						(   UpperCAmelCase					)    ->    bool:







   """simple docstring"""
   return str(UpperCAmelCase					) == str(UpperCAmelCase					)[::-1]



def 	_a						(   UpperCAmelCase					)    ->    int:







   """simple docstring"""
   return int(UpperCAmelCase					) + int(str(UpperCAmelCase					)[::-1]					)



def 	_a						(   UpperCAmelCase = 10000					)    ->    int:







   """simple docstring"""
   lowerCamelCase__       :						Tuple        =							[]
   for num in range(1      ,  UpperCAmelCase					):
      lowerCamelCase__       :						List[str]        =							0
      lowerCamelCase__       :						Union[str, Any]        =							num
      while iterations < 50:
         lowerCamelCase__       :						Dict        =							sum_reverse(UpperCAmelCase					)
         iterations += 1
         if is_palindrome(UpperCAmelCase					):
            break
      else:
         lychrel_nums.append(UpperCAmelCase					)
   return len(UpperCAmelCase					)


if __name__ == "__main__":
       print(F'''{solution() = }''')



