code: def get_root_resource(config):
      
      app_package_name = get_app_package_name(config)
      return config.registry._root_resources.setdefault(
          app_package_name, Resource(config))
docs: Returns the root resource.