from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowerCAmelCase       =		logging.get_logger(__name__)

_lowerCAmelCase       =		{
    "microsoft/cvt-13": "https://huggingface.co/microsoft/cvt-13/resolve/main/config.json",
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}
class     lowerCAmelCase_     (       __lowercase ):
							UpperCAmelCase				   =     "cvt"







							def __init__(   self      :     Optional[int] ,			_A      :     List[Any]=3 ,			_A      :     Any=[7, 3, 3] ,			_A      :     Optional[int]=[4, 2, 2] ,			_A      :     Union[str, Any]=[2, 1, 1] ,			_A      :     str=[64, 192, 384] ,			_A      :     Tuple=[1, 3, 6] ,			_A      :     Optional[Any]=[1, 2, 10] ,			_A      :     Optional[int]=[4.0, 4.0, 4.0] ,			_A      :     Optional[Any]=[0.0, 0.0, 0.0] ,			_A      :     Optional[int]=[0.0, 0.0, 0.0] ,			_A      :     int=[0.0, 0.0, 0.1] ,			_A      :     Tuple=[True, True, True] ,			_A      :     Any=[False, False, True] ,			_A      :     Union[str, Any]=["dw_bn", "dw_bn", "dw_bn"] ,			_A      :     Union[str, Any]=[3, 3, 3] ,			_A      :     List[str]=[1, 1, 1] ,			_A      :     str=[2, 2, 2] ,			_A      :     Union[str, Any]=[1, 1, 1] ,			_A      :     Dict=[1, 1, 1] ,			_A      :     List[str]=0.02 ,			_A      :     int=1e-12 ,			**_A      :     Any ,			):
												super().__init__(**_A		)
												_UpperCamelCase			     =     num_channels
												_UpperCamelCase			     =     patch_sizes
												_UpperCamelCase			     =     patch_stride
												_UpperCamelCase			     =     patch_padding
												_UpperCamelCase			     =     embed_dim
												_UpperCamelCase			     =     num_heads
												_UpperCamelCase			     =     depth
												_UpperCamelCase			     =     mlp_ratio
												_UpperCamelCase			     =     attention_drop_rate
												_UpperCamelCase			     =     drop_rate
												_UpperCamelCase			     =     drop_path_rate
												_UpperCamelCase			     =     qkv_bias
												_UpperCamelCase			     =     cls_token
												_UpperCamelCase			     =     qkv_projection_method
												_UpperCamelCase			     =     kernel_qkv
												_UpperCamelCase			     =     padding_kv
												_UpperCamelCase			     =     stride_kv
												_UpperCamelCase			     =     padding_q
												_UpperCamelCase			     =     stride_q
												_UpperCamelCase			     =     initializer_range
												_UpperCamelCase			     =     layer_norm_eps





import requests

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

def        __a			(   __lowerCAmelCase   )     ->     None:
					# fetching a list of articles in json format
					SCREAMING_SNAKE_CASE							:     List[str]						=				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>""")