



'''simple docstring'''







import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


SCREAMING_SNAKE_CASE__     : str				=   logging.get_logger(__name__)




class 				__lowerCAmelCase(							lowercase_      ):






			def __init__(   self  :							int      ,       *SCREAMING_SNAKE_CASE  :							Optional[int]      ,       **SCREAMING_SNAKE_CASE  :							Optional[int]	):




					"""simple docstring"""







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








import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info
def 							UpperCAmelCase   ( _lowercase   ):


    '''simple docstring'''



    class        snake_case_				:







       """simple docstring"""



       def __init__(     self:						Tuple ,							snake_case__:						Optional[int]						)	->		None:


           """simple docstring"""



           assert isinstance(snake_case__ ,							(bytes, str)						)
           _lowercase     			=						content

       def       SCREAMING_SNAKE_CASE__					(     self:						Tuple						)	->		str:


           """simple docstring"""



           return json.loads(self.content						)

    def mock_response(*_lowercase,   **_lowercase   ):
        assert args[0] == AUTHENTICATED_USER_ENDPOINT
        assert "Authorization" in kwargs["headers"]
        assert kwargs["headers"]["Authorization"].startswith('token '   )
        assert "Accept" in kwargs["headers"]
        return FakeResponse(b'{"login":"test","id":1}'   )

    monkeypatch.setattr(_lowercase,   'get',   _lowercase   )
    _lowercase     			=						fetch_github_info('token'   )
    assert result["login"] == "test"
    assert result["id"] == 1
