code: def _url_to_local_path(url, path):
      """Mirror a url path in a local destination (keeping folder structure)."""
      from urllib import parse, request
  
      destination = parse.urlparse(url).path
      # First char should be '/', and it needs to be discarded
      if len(destination) < 2 or destination[0] != "/":
          raise ValueError("Invalid URL")
      destination = os.path.join(
          path, request.url2pathname(destination)[1:]
      )
      return destination
  
label_desc: Use image node_id 1 for calling a global function with example usage: _url_to_local_path(url, path) and returns: destination