code: def parse_meta(meta):
      
      resources = {}
      for name in meta:
          if name.startswith("$"):
              continue
          resources[name] = resource = {}
          for action in meta[name]:
              if action.startswith("$"):
                  continue
              url, httpmethod = res_to_url(name, action)
              resource[action] = {
                  "url": url,
                  "method": httpmethod
              }
      url_prefix = meta.get("$url_prefix", "").rstrip("/")
      return url_prefix, meta["$auth"]["header"].lower(), resources
docs: Parse metadata of API
  
      Args:
          meta: metadata of API
      Returns:
          tuple(url_prefix, auth_header, resources)