




'''simple docstring'''



from ..utils import DummyObject, requires_backends


lowerCamelCase_	 =		None
def 				SCREAMING_SNAKE_CASE_				(							*__A       :				Any ,  **__A       :				Optional[int]						)				->				List[str]:
   requires_backends(__A ,  ["sentencepiece", "tokenizers"]						)







'''simple docstring'''



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

import diffusers.utils.hub_utils







class 	lowercase_					(				unittest.TestCase     ):


   """simple docstring"""

   @patch("diffusers.utils.hub_utils.get_full_repo_name"					)
   def 							lowerCAmelCase_    (					self      :			List[Any]						,   __lowerCamelCase      :			Mock					):

      """simple docstring"""
      _SCREAMING_SNAKE_CASE =   "full_repo_name"
      with TemporaryDirectory() as tmpdir:
         # Dummy args values
         _SCREAMING_SNAKE_CASE =   Mock()
         _SCREAMING_SNAKE_CASE =   tmpdir
         _SCREAMING_SNAKE_CASE =   0
         _SCREAMING_SNAKE_CASE =   "hub_token"
         _SCREAMING_SNAKE_CASE =   "dataset_name"
         _SCREAMING_SNAKE_CASE =   0.0_1
         _SCREAMING_SNAKE_CASE =   1_0_0_0_0_0
         _SCREAMING_SNAKE_CASE =   1_0_0_0_0
         _SCREAMING_SNAKE_CASE =   0.0_1
         _SCREAMING_SNAKE_CASE =   0.0_2
         _SCREAMING_SNAKE_CASE =   0.0_3
         _SCREAMING_SNAKE_CASE =   0.0_0_0_5
         _SCREAMING_SNAKE_CASE =   0.0_0_0_0_0_1
         _SCREAMING_SNAKE_CASE =   1
         _SCREAMING_SNAKE_CASE =   1_0
         _SCREAMING_SNAKE_CASE =   0.0_0_1
         _SCREAMING_SNAKE_CASE =   0.1
         _SCREAMING_SNAKE_CASE =   0.2
         _SCREAMING_SNAKE_CASE =   True

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

