code: def pop_path(path):
      
      if path in ("", "/"):
          return ("", "")
      assert path.startswith("/")
      first, _sep, rest = path.lstrip("/").partition("/")
      return (first, "/" + rest)
docs: Return '/a/b/c' -> ('a', '/b/c').