






"""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	):






						@patch('diffusers.utils.hub_utils.get_full_repo_name')
						def 		lowerCAmelCase (       self     ,    _SCREAMING_SNAKE_CASE)      ->	None:




											"""simple docstring"""





											lowerCamelCase__					='full_repo_name'
											with TemporaryDirectory() as tmpdir:
																# Dummy args values
																lowerCamelCase__					=Mock()
																lowerCamelCase__					=tmpdir
																lowerCamelCase__					=0
																lowerCamelCase__					='hub_token'
																lowerCamelCase__					='dataset_name'
																lowerCamelCase__					=0.01
																lowerCamelCase__					=10_00_00
																lowerCamelCase__					=1_00_00
																lowerCamelCase__					=0.01
																lowerCamelCase__					=0.02
																lowerCamelCase__					=0.03
																lowerCamelCase__					=0.0005
																lowerCamelCase__					=0.000001
																lowerCamelCase__					=1
																lowerCamelCase__					=10
																lowerCamelCase__					=0.001
																lowerCamelCase__					=0.1
																lowerCamelCase__					=0.2
																lowerCamelCase__					=True

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







"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


_snake_case							:   Tuple	  =       logging.get_logger(__name__)




class 							__lowercase(							_UpperCamelCase	):






						def __init__(       self     ,    *_SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE)      ->	None:




											"""simple docstring"""





											warnings.warn(
											    'The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
											    ' use ViTImageProcessor instead.'     ,    _SCREAMING_SNAKE_CASE     ,    )
											super().__init__(*_SCREAMING_SNAKE_CASE     ,    **_SCREAMING_SNAKE_CASE)