"""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      _SCREAMING_SNAKE_CASE							(			unittest.TestCase				):



   '''simple docstring'''



   def    _A				(	self	):


      '''simple docstring'''

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

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

      __lowerCamelCase    		=					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(_SCREAMING_SNAKE_CASE ,				_SCREAMING_SNAKE_CASE	)







"""simple docstring"""







def       A__    (	lowercase_     :	list						)  ->							list:

   for insert_index, insert_value in enumerate(collection[1:]						):
      __lowerCamelCase    		=					insert_index
      while insert_index >= 0 and insert_value < collection[insert_index]:
         __lowerCamelCase    		=					collection[insert_index]
         insert_index -= 1
      if insert_index != temp_index:
         __lowerCamelCase    		=					insert_value
   return collection


if __name__ == "__main__":
     from doctest import testmod

     testmod()

     _SCREAMING_SNAKE_CASE	:		List[str]   =   input('''Enter numbers separated by a comma:\n''').strip()
     _SCREAMING_SNAKE_CASE	:		Optional[int]   =   [int(item) for item in user_input.split(''',''')]
     print(F"{insertion_sort(unsorted) = }")






