code: def get_resource_mapping():
      
      portal_types = get_portal_types()
      resources = map(portal_type_to_resource, portal_types)
      return dict(zip(resources, portal_types))
docs: Map resources used in the routes to portal types
  
      :returns: Mapping of resource->portal_type
      :rtype: dict