

'''simple docstring'''






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

import diffusers.utils.hub_utils
class 	SCREAMING_SNAKE_CASE__			(				unittest.TestCase      ):




    @patch("diffusers.utils.hub_utils.get_full_repo_name"			)
    def   __lowerCamelCase      (					self				,     lowercase__			):






          """simple docstring"""






          SCREAMING_SNAKE_CASE_      :			Union[str, Any]     =       "full_repo_name"
          with TemporaryDirectory() as tmpdir:
                # Dummy args values
                SCREAMING_SNAKE_CASE_      :			List[Any]     =       Mock()
                SCREAMING_SNAKE_CASE_      :			Optional[Any]     =       tmpdir
                SCREAMING_SNAKE_CASE_      :			int     =       0
                SCREAMING_SNAKE_CASE_      :			List[str]     =       "hub_token"
                SCREAMING_SNAKE_CASE_      :			List[Any]     =       "dataset_name"
                SCREAMING_SNAKE_CASE_      :			Optional[Any]     =       0.01
                SCREAMING_SNAKE_CASE_      :			Optional[Any]     =       10_0000
                SCREAMING_SNAKE_CASE_      :			List[str]     =       1_0000
                SCREAMING_SNAKE_CASE_      :			Optional[Any]     =       0.01
                SCREAMING_SNAKE_CASE_      :			List[str]     =       0.02
                SCREAMING_SNAKE_CASE_      :			Tuple     =       0.03
                SCREAMING_SNAKE_CASE_      :			List[Any]     =       0.0005
                SCREAMING_SNAKE_CASE_      :			Union[str, Any]     =       0.000001
                SCREAMING_SNAKE_CASE_      :			Any     =       1
                SCREAMING_SNAKE_CASE_      :			Tuple     =       10
                SCREAMING_SNAKE_CASE_      :			int     =       0.001
                SCREAMING_SNAKE_CASE_      :			Optional[int]     =       0.1
                SCREAMING_SNAKE_CASE_      :			Dict     =       0.2
                SCREAMING_SNAKE_CASE_      :			Union[str, 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()			)




'''simple docstring'''






from ..utils import DummyObject, requires_backends
class 	SCREAMING_SNAKE_CASE__			(				metaclass=_UpperCAmelCase      ):
    _A			    =							["torch", "transformers", "invisible_watermark"]




    def __init__(					self				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(self				,     ["torch", "transformers", "invisible_watermark"]			)




    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(cls				,     ["torch", "transformers", "invisible_watermark"]			)







    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(cls				,     ["torch", "transformers", "invisible_watermark"]			)






class 	SCREAMING_SNAKE_CASE__			(				metaclass=_UpperCAmelCase      ):
    _A			    =							["torch", "transformers", "invisible_watermark"]




    def __init__(					self				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(self				,     ["torch", "transformers", "invisible_watermark"]			)




    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(cls				,     ["torch", "transformers", "invisible_watermark"]			)







    @classmethod
    def   __lowerCamelCase      (					cls				,     *lowercase__				,     **lowercase__			):






          """simple docstring"""






          requires_backends(cls				,     ["torch", "transformers", "invisible_watermark"]			)

