code: def with_path(self, path, *, encoded=False):
          
          if not encoded:
              path = self._PATH_QUOTER(path)
              if self.is_absolute():
                  path = self._normalize_path(path)
          if len(path) > 0 and path[0] != "/":
              path = "/" + path
          return URL(self._val._replace(path=path, query="", fragment=""), encoded=True)
docs: Return a new URL with path replaced.