'''simple docstring'''

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


__a: Any          =   logging.get_logger(__name__)

__a: Optional[int]          =   {
    """alibaba-damo/mgp-str-base""": """https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json""",
}



class 			UpperCAmelCase  (						a__					):





       '''simple docstring'''



       SCREAMING_SNAKE_CASE							=    "mgp-str"

       def __init__(						self	,   __lowerCAmelCase=[32, 128]	,   __lowerCAmelCase=4	,   __lowerCAmelCase=3	,   __lowerCAmelCase=27	,   __lowerCAmelCase=38	,   __lowerCAmelCase=50257	,   __lowerCAmelCase=30522	,   __lowerCAmelCase=768	,   __lowerCAmelCase=12	,   __lowerCAmelCase=12	,   __lowerCAmelCase=4.0	,   __lowerCAmelCase=True	,   __lowerCAmelCase=False	,   __lowerCAmelCase=1E-5	,   __lowerCAmelCase=0.0	,   __lowerCAmelCase=0.0	,   __lowerCAmelCase=0.0	,   __lowerCAmelCase=False	,   __lowerCAmelCase=0.0_2	,   **__lowerCAmelCase	,   )  ->  Optional[int]:
        super().__init__(**__lowerCAmelCase )

        lowercase__				:    Dict  =					image_size
        lowercase__				:    List[str]  =					patch_size
        lowercase__				:    Optional[Any]  =					num_channels
        lowercase__				:    Any  =					max_token_length
        lowercase__				:    Dict  =					num_character_labels
        lowercase__				:    Optional[Any]  =					num_bpe_labels
        lowercase__				:    List[str]  =					num_wordpiece_labels
        lowercase__				:    Union[str, Any]  =					hidden_size
        lowercase__				:    Any  =					num_hidden_layers
        lowercase__				:    List[str]  =					num_attention_heads
        lowercase__				:    List[Any]  =					mlp_ratio
        lowercase__				:    Optional[int]  =					distilled
        lowercase__				:    Any  =					layer_norm_eps
        lowercase__				:    List[str]  =					drop_rate
        lowercase__				:    List[str]  =					qkv_bias
        lowercase__				:    List[Any]  =					attn_drop_rate
        lowercase__				:    List[str]  =					drop_path_rate
        lowercase__				:    int  =					output_aa_attentions
        lowercase__				:    Optional[Any]  =					initializer_range


'''simple docstring'''

import requests

__a: str          =   """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""
def 			__UpperCamelCase       (   UpperCAmelCase     ):
 # fetching a list of articles in json format
 lowercase__				:    Optional[Any]  =					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>""")

