code: def load_data_file(pathname_or_url, load_fn):
      ext = os.path.splitext(pathname_or_url)[-1].lower()
  
      if any(
          [
              pathname_or_url.startswith(scheme)
              for scheme in PASSTHROUGH_SCHEMES
          ]
      ):
          url = generate_presigned_url(pathname_or_url)
  
          try:
              src = urllib.request.urlopen(url)
              fd, path = tempfile.mkstemp(suffix=ext)
              with os.fdopen(fd, mode="wb") as dest:
                  shutil.copyfileobj(src, dest)
              img = load_fn(path)
          finally:
              try:
                  src.close()
                  os.remove(path)
              except NameError:
                  pass
  
          return img
  
      return load_fn(pathname_or_url)
  
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 10 for calling a global function with example usage: load_data_file(pathname_or_url, load_fn) and returns: load_fn, img