input: from typing import Dict
  
  def list_countries() -> Dict[str, list]:
      """ Return a dictionary where the keys are the names of continents and the values are lists of countries from that continent.
      The countries should be loaded from a local JSON file named 'data.json' which contains an array of country objects.
      Each country object has 'name' and 'continent' attributes.
      Example:
      for list_countries()
      output: {'Asia': ['China', 'India'], 'Europe': ['Germany', 'France']}
      """
      
  def list_countries() -> Dict[str, list]:
      with open('data.json', 'r') as f:
          countries = json.load(f)
      
      result = {}
      for country in countries:
          if country['continent'] not in result:
              result[country['continent']] = []
          result[country['continent']].append(country['name'])
      
      return result
  
  if __name__ == '__main__':
      print(list_countries())
output:     
  import json
  
  def list_countries() -> Dict[str, list]:
      with open('data.json', 'r') as f:
          countries = json.load(f)
      
      result = {}
      for country in countries:
          if country['continent'] not in result:
              result[country['continent']] = []
          result[country['continent']].append(country['name'])
      
      return result
  
  if __name__ == '__main__':
      print(list_countries())
  