code: def url_to_modpath(url):
      import urllib.parse
  
      from .hdf5_dict import HDF5FileList
  
      if not url.lower().startswith("file:"):
          schema, rest = HDF5FileList.split_url(url)
          return (
              [schema]
              + rest[0:1]
              + [unquote(part) for part in rest[1:]]
          )
      path = urllib.request.url2pathname(url[5:])
      parts = []
      while True:
          new_path, part = os.path.split(path)
          if len(new_path) == 0 or len(part) == 0:
              parts.insert(0, path)
              break
          parts.insert(0, part)
          path = new_path
      return parts
  
imports: import logging
  import os
  import re
  import shutil
  import sys
  import tempfile
  import urllib.request
  from urllib.parse import parse_qs, unquote, urlparse
  from urllib.request import urlopen
  import boto3
  import numpy
  import pkg_resources
  import scipy.io
  from google.cloud import storage
  from google.cloud.exceptions import NotFound
  from google.auth.exceptions import DefaultCredentialsError
  from ..constants.image import ALL_IMAGE_EXTENSIONS, FILE_SCHEME, PASSTHROUGH_SCHEMES, SUPPORTED_MOVIE_EXTENSIONS
  from ..constants.measurement import FTR_WELL
  from .measurement import is_well_column_token, is_well_row_token
label_desc: Use image node_id 17 for calling a global function with example usage: url_to_modpath(url) and returns: parts, unknown