



'''simple docstring'''



import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info


def 							__UpperCAmelCase				(				UpperCamelCase__				:List[str]			)		->						str:






				class 			_SCREAMING_SNAKE_CASE				:



							def __init__(     self		:						str    ,			__UpperCamelCase		:						List[Any]			)      ->      None:
											"""simple docstring"""





											assert isinstance(__UpperCamelCase    ,			(bytes, str)			)
											snake_case__      :   Tuple      =    content







							def 				lowerCAmelCase (     self		:						Optional[int]			)      ->      Any:
											"""simple docstring"""





											return json.loads(self.content			)

				def mock_response(*UpperCamelCase__				:int   ,				**UpperCamelCase__				:Tuple			):
								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__			)
				snake_case__      :   List[Any]      =    fetch_github_info('''token'''			)
				assert result["login"] == "test"
				assert result["id"] == 1












def        _lowerCamelCase(      lowerCAmelCase__					:		int = 99_8001   ):





				'''simple docstring'''







				for number in range(n - 1     ,     9999     ,     -1   ):
								SCREAMING_SNAKE_CASE_ :						int    				= str(lowerCAmelCase__   )

								# checks whether 'str_number' is a palindrome.
								if str_number == str_number[::-1]:
												SCREAMING_SNAKE_CASE_ :						str    				= 999

												# if 'number' is a product of two 3-digit numbers
												# then number is the answer otherwise fetch next number.
												while divisor != 99:
																if (number % divisor == 0) and (len(str(number // divisor   )   ) == 3.0):
																				return number
																divisor -= 1
				raise ValueError('That number is larger than our acceptable range.'   )


if __name__ == "__main__":
				print(f"""{solution() = }""")