



'''simple docstring'''





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible


class 				snake_case (unittest.TestCase   ):



       def 							_a      (				self      )  ->							str:
           lowercase__		       =						[
               '''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(UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							int:
           lowercase__		       =						[
               '''unet/diffusion_pytorch_model.bin''',
               '''unet/diffusion_pytorch_model.safetensors''',
           ]
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							Tuple:
           lowercase__		       =						[
               '''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(UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							Dict:
           lowercase__		       =						[
               '''text_encoder/pytorch_model.bin''',
               '''text_encoder/model.safetensors''',
           ]
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							str:
           lowercase__		       =						[
               '''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(UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							List[str]:
           lowercase__		       =						[
               '''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''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							Any:
           lowercase__		       =						[
               '''unet/diffusion_pytorch_model.fp16.bin''',
               '''unet/diffusion_pytorch_model.fp16.safetensors''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							Dict:
           # pass variant but use the non-variant filenames
           lowercase__		       =						[
               '''unet/diffusion_pytorch_model.bin''',
               '''unet/diffusion_pytorch_model.safetensors''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							List[Any]:
           lowercase__		       =						[
               '''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',
           ]
           lowercase__		       =						'''fp16'''
           self.assertFalse(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							List[str]:
           lowercase__		       =						[
               '''text_encoder/pytorch_model.fp16.bin''',
               '''text_encoder/model.fp16.safetensors''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )



       def 							_a      (				self      )  ->							Optional[Any]:
           # pass variant but use the non-variant filenames
           lowercase__		       =						[
               '''text_encoder/pytorch_model.bin''',
               '''text_encoder/model.safetensors''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertTrue(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )







       def 							_a      (				self      )  ->							Union[str, Any]:
           lowercase__		       =						[
               '''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''',
           ]
           lowercase__		       =						'''fp16'''
           self.assertFalse(is_safetensors_compatible(UpperCAmelCase_     ,variant=UpperCAmelCase_      )      )









'''simple docstring'''





def        lowerCamelCase  (				_snake_case  :						int = 4_000_000       ):





    '''simple docstring'''


    lowercase__		       =						[0, 1]
    lowercase__		       =						0
    while fib[i] <= n:
        fib.append(fib[i] + fib[i + 1]       )
        if fib[i + 2] > n:
            break
        i += 1
    lowercase__		       =						0
    for j in range(len(_snake_case       ) - 1       ):
        if fib[j] % 2 == 0:
            total += fib[j]

    return total


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




