


import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils




class A  (       unittest.TestCase					):






      @patch('diffusers.utils.hub_utils.get_full_repo_name'			)
      def 	lowerCamelCase	( self						:					Optional[int]      ,       lowercase_						:					Mock			) ->						None:
             """simple docstring"""




             _lowerCamelCase	:		int          ='full_repo_name'
             with TemporaryDirectory() as tmpdir:
                    # Dummy args values
                    _lowerCamelCase	:		List[str]          =Mock()
                    _lowerCamelCase	:		Optional[int]          =tmpdir
                    _lowerCamelCase	:		List[str]          =0
                    _lowerCamelCase	:		Tuple          ='hub_token'
                    _lowerCamelCase	:		Tuple          ='dataset_name'
                    _lowerCamelCase	:		Any          =0.01
                    _lowerCamelCase	:		str          =10_0000
                    _lowerCamelCase	:		Union[str, Any]          =1_0000
                    _lowerCamelCase	:		int          =0.01
                    _lowerCamelCase	:		Optional[Any]          =0.02
                    _lowerCamelCase	:		List[str]          =0.03
                    _lowerCamelCase	:		Optional[int]          =0.0005
                    _lowerCamelCase	:		List[str]          =0.000001
                    _lowerCamelCase	:		List[Any]          =1
                    _lowerCamelCase	:		Optional[int]          =10
                    _lowerCamelCase	:		List[Any]          =0.001
                    _lowerCamelCase	:		Dict          =0.1
                    _lowerCamelCase	:		Dict          =0.2
                    _lowerCamelCase	:		Optional[Any]          =True

                    # Model card mush be rendered and saved
                    diffusers.utils.hub_utils.create_model_card(lowercase_      ,       model_name='model_name'			)
                    self.assertTrue((Path(lowercase_			) / 'README.md').is_file()			)






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCamelCase						 =	{'configuration_visual_bert': ['VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'VisualBertConfig']}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 lowerCamelCase						 =	[
     '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

 lowerCamelCase						 =	_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)


