'''simple docstring'''





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible




class        __A      ( unittest.TestCase	):



    def 					_lowercase						(self    :    Any ):
         UpperCAmelCase_           =   [
             "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(__a ) )



    def 					_lowercase						(self    :    int ):
         UpperCAmelCase_           =   [
             "unet/diffusion_pytorch_model.bin",
             "unet/diffusion_pytorch_model.safetensors",
         ]
         self.assertTrue(is_safetensors_compatible(__a ) )



    def 					_lowercase						(self    :    Optional[Any] ):
         UpperCAmelCase_           =   [
             "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(__a ) )



    def 					_lowercase						(self    :    Union[str, Any] ):
         UpperCAmelCase_           =   [
             "text_encoder/pytorch_model.bin",
             "text_encoder/model.safetensors",
         ]
         self.assertTrue(is_safetensors_compatible(__a ) )



    def 					_lowercase						(self    :    str ):
         UpperCAmelCase_           =   [
             "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(__a ) )



    def 					_lowercase						(self    :    Dict ):
         UpperCAmelCase_           =   [
             "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",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertTrue(is_safetensors_compatible(__a   ,			variant=__a ) )



    def 					_lowercase						(self    :    Optional[Any] ):
         UpperCAmelCase_           =   [
             "unet/diffusion_pytorch_model.fp16.bin",
             "unet/diffusion_pytorch_model.fp16.safetensors",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertTrue(is_safetensors_compatible(__a   ,			variant=__a ) )



    def 					_lowercase						(self    :    Optional[int] ):
         # pass variant but use the non-variant filenames
         UpperCAmelCase_           =   [
             "unet/diffusion_pytorch_model.bin",
             "unet/diffusion_pytorch_model.safetensors",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertTrue(is_safetensors_compatible(__a   ,			variant=__a ) )



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



    def 					_lowercase						(self    :    str ):
         UpperCAmelCase_           =   [
             "text_encoder/pytorch_model.fp16.bin",
             "text_encoder/model.fp16.safetensors",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertTrue(is_safetensors_compatible(__a   ,			variant=__a ) )



    def 					_lowercase						(self    :    Union[str, Any] ):
         # pass variant but use the non-variant filenames
         UpperCAmelCase_           =   [
             "text_encoder/pytorch_model.bin",
             "text_encoder/model.safetensors",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertTrue(is_safetensors_compatible(__a   ,			variant=__a ) )






    def 					_lowercase						(self    :    int ):
         UpperCAmelCase_           =   [
             "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",
         ]
         UpperCAmelCase_           =   "fp16"
         self.assertFalse(is_safetensors_compatible(__a   ,			variant=__a ) )












"""simple docstring"""






def 					_A			(__a = 50							) ->       int:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_      :  Tuple    						=		[[0] * 3 for _ in range(length + 1							)]

    for row_length in range(length + 1							):
        for tile_length in range(2    ,				5							):
            for tile_start in range(row_length - tile_length + 1							):
                different_colour_ways_number[row_length][tile_length - 2] += (
                    different_colour_ways_number[row_length - tile_start - tile_length][
                        tile_length - 2
                    ]
                    + 1
                )

    return sum(different_colour_ways_number[length]							)


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


