code: def _add_macro_map(context, package_name, macro_map):
      
      key = package_name
      if package_name in PACKAGES:
          key = GLOBAL_PROJECT_NAME
      if key not in context:
          context[key] = {}
  
      context[key].update(macro_map)
docs: Update an existing context in-place, adding the given macro map to the
      appropriate package namespace. Adapter packages get inserted into the
      global namespace.