
import requests

lowercase__							:							Optional[int]									=			"https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="




def 	A_ (							snake_case							:   str )      ->    None:



						'''simple docstring'''

						__UpperCamelCase       =			requests.get(_NEWS_API + bbc_news_api_key ).json()
						# each article in the list is a dict
						for i, article in enumerate(bbc_news_page['''articles'''] ,      1 ):
												print(f"{i}.) {article['title']}" )


if __name__ == "__main__":
				fetch_bbc_news(bbc_news_api_key="<Your BBC News API key goes here>")






import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer




def 	A_ (							snake_case							:   str ,      snake_case							:   str ,      **snake_case							:   List[str] )      ->    Dict:



						'''simple docstring'''

						__UpperCamelCase       =			AutoConfig.from_pretrained(snake_case ,      **snake_case )
						__UpperCamelCase       =			AutoModelForSeqaSeqLM.from_config(snake_case )
						model.save_pretrained(snake_case )
						AutoTokenizer.from_pretrained(snake_case ).save_pretrained(snake_case )
						return model


if __name__ == "__main__":
				fire.Fire(save_randomly_initialized_version)




