code: def with_path(self, path: str) -> Self:
      dupe = copy.copy(self)
      dupe.path = path
      return dupe
  
imports: from __future__ import annotations
  import copy
  import os
  import re
  from typing import Optional
  from typing import Union
  from urllib.parse import urlparse
  import requests
  from typing_extensions import Self
  from ..serde.serializable import serializable
  from ..util.util import verify_tls
label_desc: Use image node_id 3 for calling the GridURL obj's underlying member method code with example usage: obj.with_path(path) and returns: dupe