docs: def remove_slug(path):
      """
      Return the remainin part of the path
  
          >>> remove_slug('/test/some/function/')
          test/some
      """
      if path.endswith('/'):
          path = path[:-1]
      if path.startswith('/'):
          path = path[1:]
      if "/" not in path or not path:
          return None
      parts = path.split("/")[:-1]
      return "/".join(parts)