

from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


UpperCAmelCase__			:  Dict					     =     {
    """configuration_unispeech_sat""": ["""UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """UniSpeechSatConfig"""],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase__			:  int					     =     [
      """UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """UniSpeechSatForAudioFrameClassification""",
      """UniSpeechSatForCTC""",
      """UniSpeechSatForPreTraining""",
      """UniSpeechSatForSequenceClassification""",
      """UniSpeechSatForXVector""",
      """UniSpeechSatModel""",
      """UniSpeechSatPreTrainedModel""",
  ]

if TYPE_CHECKING:
  from .configuration_unispeech_sat import UNISPEECH_SAT_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechSatConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_unispeech_sat import (
        UNISPEECH_SAT_PRETRAINED_MODEL_ARCHIVE_LIST,
        UniSpeechSatForAudioFrameClassification,
        UniSpeechSatForCTC,
        UniSpeechSatForPreTraining,
        UniSpeechSatForSequenceClassification,
        UniSpeechSatForXVector,
        UniSpeechSatModel,
        UniSpeechSatPreTrainedModel,
    )

else:
  import sys

  UpperCAmelCase__			:  List[Any]					     =     _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)









import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info







def 							A     (						__UpperCAmelCase      )			->			Dict:



						'''simple docstring'''






						class 				a_    :

												def __init__(       self      :Optional[int]  ,		_lowercase      :Any)						->   None:
																		assert isinstance(_lowercase  ,		(bytes, str))
																		UpperCAmelCase_					=	content




												def       __a			(       self      :List[str])						->   Tuple:
																		return json.loads(self.content)

						def mock_response(*__UpperCAmelCase				,   **__UpperCAmelCase      ):
												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(__UpperCAmelCase				,   '''get'''				,   __UpperCAmelCase      )
						UpperCAmelCase_					=	fetch_github_info('''token'''      )
						assert result["login"] == "test"
						assert result["id"] == 1





