code: 
  '''simple docstring'''
  
  
  
  
  
  import shutil
  
  import requests
  def   snake_case_       (							_a     :							str ,					_a     :							bool = False ,					_a     :							str = "."			):
        snake_case_						       =							"https://api.nasa.gov/planetary/apod"
        return requests.get(_a ,					params={"api_key": api_key}			).json()
  def   snake_case_       (							_a     :							str ,					_a     :							str = "."			):
        snake_case_						       =							get_apod_data(_a			)
        snake_case_						       =							apod_data["url"]
        snake_case_						       =							img_url.split("/"			)[-1]
        snake_case_						       =							requests.get(_a ,					stream=_a			)
  
        with open(F'''{path}/{img_name}''' ,					"wb+"			) as img_file:
              shutil.copyfileobj(response.raw ,					_a			)
        del response
        return apod_data
  def   snake_case_       (							_a     :							str			):
        snake_case_						       =							"https://images-api.nasa.gov/search"
        return requests.get(_a ,					params={"q": query}			).json()
  
  
  if __name__ == "__main__":
       print(save_apod("YOUR API KEY"))
       A           =   get_archive_data("apollo 2011")["collection"]["items"]
       print(apollo_aaaa_items[0]["data"][0]["description"])
  
  
style_context: 
  '''simple docstring'''
  
  
  
  
  
  from __future__ import annotations
  
  import random
  
  
  
  class  lowerCAmelCase__   :
  
  
  
    '''simple docstring'''
  
  
  
  
  
  
    _UpperCamelCase						= 6
  
    def __init__(self  : List[Any]    )   ->       Optional[Any]:
          snake_case_						       =							list(range(1	, Dice.NUM_SIDES + 1    )    )
  
  
    def 		_lowerCamelCase	(self  : Optional[int]    )   ->       int:
          return random.choice(self.sides    )
  
  def   snake_case_       (							_a     :							int ,					_a     :							int = 2			):
        snake_case_						       =							[Dice() for i in range(_a			)]
        snake_case_						       =							[0] * (len(_a			) * Dice.NUM_SIDES + 1)
        for _ in range(_a			):
              count_of_sum[sum(dice.roll() for dice in dices			)] += 1
        snake_case_						       =							[round((count * 100) / num_throws ,					2			) for count in count_of_sum]
        return probability[num_dice:]  # remove probability of sums that never appear
  
  
  if __name__ == "__main__":
       import doctest
  
       doctest.testmod()
  
  