code: 
  
  
  
  
  
  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 				_lowerCamelCase (    unittest.TestCase    ):
  
  
  
        """simple docstring"""
  
  
  
  
  
  
        def 						UpperCAmelCase		( self   )       ->   Tuple:
  
  
  
  
  
  
          '''simple docstring'''
  
  
  
  
  
  
          __snake_case   :				Optional[Any]        =       "runwayml/stable-diffusion-v1-5"
          __snake_case   :				int        =       TextToVideoZeroPipeline.from_pretrained(UpperCAmelCase				,						torch_dtype=torch.floataa   ).to("cuda"   )
          __snake_case   :				List[str]        =       DDIMScheduler.from_config(pipe.scheduler.config   )
          __snake_case   :				Optional[Any]        =       torch.Generator(device="cuda"   ).manual_seed(0   )
  
          __snake_case   :				Any        =       "A bear is playing a guitar on Times Square"
          __snake_case   :				Any        =       pipe(prompt=UpperCAmelCase				,						generator=UpperCAmelCase   ).images
  
          __snake_case   :				Union[str, Any]        =       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(UpperCAmelCase				,						UpperCAmelCase   )
  
  
style_context: 
  
  
  
  
  
  def       lowerCAmelCase__(	lowercase       :    str				) ->    int:
    __snake_case   :				List[str]        =       str(lowercase				).strip()
    if not oct_string:
      raise ValueError("Empty string was passed to the function"				)
    __snake_case   :				int        =       oct_string[0] == "-"
    if is_negative:
      __snake_case   :				Union[str, Any]        =       oct_string[1:]
    if not oct_string.isdigit() or not all(0 <= int(lowercase				) <= 7 for char in oct_string				):
      raise ValueError("Non-octal value was passed to the function"				)
    __snake_case   :				List[Any]        =       0
    for char in oct_string:
      __snake_case   :				Optional[Any]        =       8 * decimal_number + int(lowercase				)
    if is_negative:
      __snake_case   :				Any        =       -decimal_number
    return decimal_number
  
  
  if __name__ == "__main__":
       from doctest import testmod
  
       testmod()
  
  