code: def vsi_path(path, vsi=None, archive=None):
      # If a VSI and archive file are specified, we convert the path to
      # an OGR VSI path (see cpl_vsi.h).
      if vsi:
          prefix = "/".join(f"vsi{SCHEMES[p]}" for p in vsi.split("+"))
          if archive:
              result = f"/{prefix}/{archive}{path}"
          else:
              result = f"/{prefix}/{path}"
      else:
          result = path
  
      return result
  
imports: import sys
  import re
  from urllib.parse import urlparse
label_desc: Use image node_id 3 for calling a global function with example usage: vsi_path(path, vsi, archive) and returns: result