'''simple docstring'''






import shutil

import requests





def    _SCREAMING_SNAKE_CASE		(			__snake_case       : str      ,		__snake_case       : bool = False      ,		__snake_case       : str = "."							):
     _A								=     'https://api.nasa.gov/planetary/apod'
     return requests.get(__snake_case      ,		params={'api_key': api_key}							).json()





def    _SCREAMING_SNAKE_CASE		(			__snake_case       : str      ,		__snake_case       : str = "."							):
     _A								=     get_apod_data(__snake_case							)
     _A								=     apod_data['url']
     _A								=     img_url.split('/'							)[-1]
     _A								=     requests.get(__snake_case      ,		stream=__snake_case							)

     with open(F'{path}/{img_name}'      ,		'wb+'							) as img_file:
          shutil.copyfileobj(response.raw      ,		__snake_case							)
     del response
     return apod_data





def    _SCREAMING_SNAKE_CASE		(			__snake_case       : str							):
     _A								=     'https://images-api.nasa.gov/search'
     return requests.get(__snake_case      ,		params={'q': query}							).json()


if __name__ == "__main__":
   print(save_apod('''YOUR API KEY'''))
   _UpperCAmelCase						:    Any     					=					get_archive_data('''apollo 2011''')['''collection''']['''items''']
   print(apollo_aaaa_items[0]['''data'''][0]['''description'''])




'''simple docstring'''






from sklearn.neural_network import MLPClassifier

_UpperCAmelCase						:    str     					=					[[0.0, 0.0], [1.0, 1.0], [1.0, 0.0], [0.0, 1.0]]
_UpperCAmelCase						:    Any     					=					[0, 1, 0, 0]


_UpperCAmelCase						:    List[Any]     					=					MLPClassifier(
    solver='''lbfgs''', alpha=1E-5, hidden_layer_sizes=(5, 2), random_state=1
)

clf.fit(X, y)


_UpperCAmelCase						:    Optional[Any]     					=					[[0.0, 0.0], [0.0, 1.0], [1.0, 1.0]]
_UpperCAmelCase						:    Tuple     					=					clf.predict(test)





def    _SCREAMING_SNAKE_CASE		(			__snake_case       : Optional[Any]							):
     return list(__snake_case							)


if __name__ == "__main__":
   import doctest

   doctest.testmod()



