code: def url2pathname(url):
      lower_url = url.lower()
  
      if any((lower_url.startswith(x) for x in PASSTHROUGH_SCHEMES)):
          return url
  
      if is_file_url(url):
          return urllib.request.url2pathname(url[len(FILE_SCHEME) :])
  
imports: import pathlib
  import urllib
  import logging
  from cellprofiler_core.constants.image import FILE_SCHEME, PASSTHROUGH_SCHEMES
  from cellprofiler_core.utilities.image import is_file_url
label_desc: Use image node_id 2 for calling a global function with example usage: url2pathname(url) and returns: url, urllib