
import torch

from transformers import PreTrainedModel

from .custom_configuration import CustomConfig, NoSuperInitConfig






class 			A			(		lowerCAmelCase__		):
     """simple docstring"""

     _snake_case:	int     =CustomConfig




     def __init__(    self  :   int	,  A__  :   Tuple			)				->       str:
           super().__init__(lowerCAmelCase_			)
           lowerCamelCase__        =				torch.nn.Linear(config.hidden_size	,  config.hidden_size			)




     def  __snake_case   (    self  :   Optional[int]	,  A__  :   Optional[Any]			)				->       int:
           return self.linear(lowerCAmelCase_			)




     def  __snake_case   (    self  :   Dict	,  A__  :   Tuple			)				->       Optional[Any]:
           pass






class 			A			(		lowerCAmelCase__		):
     """simple docstring"""

     _snake_case:	Tuple     =NoSuperInitConfig




     def __init__(    self  :   List[str]	,  A__  :   Optional[int]			)				->       Any:
           super().__init__(lowerCAmelCase_			)
           lowerCamelCase__        =				torch.nn.Linear(config.attribute	,  config.attribute			)




     def  __snake_case   (    self  :   int	,  A__  :   Optional[int]			)				->       Optional[Any]:
           return self.linear(lowerCAmelCase_			)




     def  __snake_case   (    self  :   List[str]	,  A__  :   List[str]			)				->       str:
           pass





import shutil

import requests

def 			lowerCAmelCase_			(  lowerCamelCase:       str     ,				lowerCamelCase:       bool = False     ,				lowerCamelCase:       str = "."						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				'https://api.nasa.gov/planetary/apod'
      return requests.get(lowerCamelCase     ,				params={'api_key': api_key}						).json()

def 			lowerCAmelCase_			(  lowerCamelCase:       str     ,				lowerCamelCase:       str = "."						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				get_apod_data(lowerCamelCase						)
      lowerCamelCase__        =				apod_data['url']
      lowerCamelCase__        =				img_url.split('/'						)[-1]
      lowerCamelCase__        =				requests.get(lowerCamelCase     ,				stream=lowerCamelCase						)

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

def 			lowerCAmelCase_			(  lowerCamelCase:       str						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				'https://images-api.nasa.gov/search'
      return requests.get(lowerCamelCase     ,				params={'q': query}						).json()


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