code: def pop_path2(path):
      
      if path in ("", "/"):
          return ("", "", "")
      first, rest = pop_path(path)
      second, rest = pop_path(rest)
      return (first, second, "/" + rest)
docs: Return '/a/b/c' -> ('a', 'b', '/c').