input: Write a python function to retrieve the categories of a list of Wikipedia articles.
  assert get_wikipedia_categories(['Advanced Dungeons & Dragons']) == {'Advanced Dungeons & Dragons': ['Books about games', 'Dungeons & Dragons', 'Role-playing game books']}
  assert get_wikipedia_categories(['The Legend of Zelda']) == {'The Legend of Zelda': ['1986 video games', 'Action-adventure games', 'High fantasy video games', 'Nintendo franchises', 'The Legend of Zelda']}
  assert get_wikipedia_categories(['Mario Kart']) == {'Mario Kart': ['1992 video games', 'Kart racing video games', 'Mario Kart', 'Nintendo franchises', 'Racing video games', 'Video games developed in Japan']}
output: def get_wikipedia_categories(articles):
      import requests
  
      categories = {}
      for article in articles:
          response = requests.get(f'https://en.wikipedia.org/w/api.php', {
              'action': 'query',
              'titles': article,
              'prop': 'categories',
              'format': 'json',
              'cllimit': 'max'
          })
          data = response.json()
          page = next(iter(data['query']['pages'].values()))
          if 'categories' in page:
              categories[article] = [cat['title'].replace('Category:', '') for cat in page['categories']]
          else:
              categories[article] = []
  
      return categories