
'''simple docstring'''





def     snake_case							(						UpperCAmelCase ,					UpperCAmelCase		)->     Optional[int]:







      """simple docstring"""
      if len(str(UpperCAmelCase		)		) == 1 or len(str(UpperCAmelCase		)		) == 1:
            return a * b

      __A    		=     max(len(str(UpperCAmelCase		)		) ,					len(str(UpperCAmelCase		)		)		)
      __A    		=     ma // 2

      __A		, __A    		=     divmod(UpperCAmelCase ,					1_0**ma		)
      __A		, __A    		=     divmod(UpperCAmelCase ,					1_0**ma		)

      __A    		=     karatsuba(UpperCAmelCase ,					UpperCAmelCase		)
      __A    		=     karatsuba((aa + aa) ,					(ba + ba)		)
      __A    		=     karatsuba(UpperCAmelCase ,					UpperCAmelCase		)

      return (z * 1_0 ** (2 * ma)) + ((y - z - x) * 1_0 ** (ma)) + (x)





def     snake_case							(						)->     Optional[Any]:







      """simple docstring"""
      print(karatsuba(1_5_4_6_3 ,					2_3_4_8_9		)		)


if __name__ == "__main__":
 main()








'''simple docstring'''





import unittest

import torch

from diffusers import DDIMScheduler, TextToVideoZeroPipeline
from diffusers.utils import load_pt, require_torch_gpu, slow

from ..test_pipelines_common import assert_mean_pixel_difference


@slow
@require_torch_gpu
class 	UpperCamelCase__					(      unittest.TestCase):






 def 		lowercase_  (     self					:Optional[int]     )			->     List[Any]:







       '''simple docstring'''



       __A    		=     'runwayml/stable-diffusion-v1-5'
       __A    		=     TextToVideoZeroPipeline.from_pretrained(_A		,			torch_dtype=torch.floataa     ).to('cuda'     )
       __A    		=     DDIMScheduler.from_config(pipe.scheduler.config     )
       __A    		=     torch.Generator(device='cuda'     ).manual_seed(0     )

       __A    		=     'A bear is playing a guitar on Times Square'
       __A    		=     pipe(prompt=_A		,			generator=_A     ).images

       __A    		=     load_pt(
           'https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/text-to-video/A bear is playing a guitar on Times Square.pt'     )

       assert_mean_pixel_difference(_A		,			_A     )






