code: 
  
  
  '''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    __UpperCAmelCase							(     self							):
  
  						'''simple docstring'''
  
  
  
  
  
  						__a    : Optional[Any]      					=						'runwayml/stable-diffusion-v1-5'
  						__a    : Optional[int]      					=						TextToVideoZeroPipeline.from_pretrained(SCREAMING_SNAKE_CASE_		,       torch_dtype=torch.floataa							).to('cuda'							)
  						__a    : Tuple      					=						DDIMScheduler.from_config(pipe.scheduler.config							)
  						__a    : Optional[Any]      					=						torch.Generator(device='cuda'							).manual_seed(0							)
  
  						__a    : Optional[int]      					=						'A bear is playing a guitar on Times Square'
  						__a    : str      					=						pipe(prompt=SCREAMING_SNAKE_CASE_		,       generator=SCREAMING_SNAKE_CASE_							).images
  
  						__a    : int      					=						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_							)
  
  
  
  
style_context: 
  
  
  '''simple docstring'''
  
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available
  
  
  __lowercase			:		Any =			{'configuration_visual_bert': ['VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'VisualBertConfig']}
  
  try:
  	if not is_torch_available():
  		raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  	pass
  else:
  	__lowercase			:		Optional[int] =			[
  	    'VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST',
  	    'VisualBertForMultipleChoice',
  	    'VisualBertForPreTraining',
  	    'VisualBertForQuestionAnswering',
  	    'VisualBertForRegionToPhraseAlignment',
  	    'VisualBertForVisualReasoning',
  	    'VisualBertLayer',
  	    'VisualBertModel',
  	    'VisualBertPreTrainedModel',
  	]
  
  
  if TYPE_CHECKING:
  	from .configuration_visual_bert import VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, VisualBertConfig
  
  	try:
  		if not is_torch_available():
  			raise OptionalDependencyNotAvailable()
  	except OptionalDependencyNotAvailable:
  		pass
  	else:
  		from .modeling_visual_bert import (
  		    VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
  		    VisualBertForMultipleChoice,
  		    VisualBertForPreTraining,
  		    VisualBertForQuestionAnswering,
  		    VisualBertForRegionToPhraseAlignment,
  		    VisualBertForVisualReasoning,
  		    VisualBertLayer,
  		    VisualBertModel,
  		    VisualBertPreTrainedModel,
  		)
  
  
  else:
  	import sys
  
  	__lowercase			:		Tuple =			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)
  
  
  
  