code: def load_using_loader(
      url_or_handle, decompressor, loader, cache, **kwargs
  ):
      if is_handle(url_or_handle):
          with decompressor(url_or_handle) as decompressor_handle:
              result = loader(decompressor_handle, **kwargs)
      else:
          url = url_or_handle
          try:
              with read_handle(url, cache=cache) as handle:
                  with decompressor(handle) as decompressor_handle:
                      result = loader(decompressor_handle, **kwargs)
          except (DecodeError, ValueError):
              log.warning(
                  "While loading '%s' an error occurred. Purging cache once and trying again; if this fails we will raise an Exception! Current io scopes: %r",
                  url,
                  current_io_scopes(),
              )
              # since this may have been cached, it's our responsibility to try again once
              # since we use a handle here, the next DecodeError should propagate upwards
              with read_handle(url, cache="purge") as handle:
                  result = load_using_loader(
                      handle, decompressor, loader, cache, **kwargs
                  )
      return result
  
imports: import io
  import lzma
  import os
  import json
  import logging
  import pickle
  import numpy
  import PIL.Image
  import tensorflow
  from concurrent.futures import ThreadPoolExecutor, as_completed
  from google.protobuf.message import DecodeError
  from lucid.misc.io.reading import read_handle
  from lucid.misc.io.scoping import current_io_scopes, set_io_scopes
  from lucid.misc.io.saving import nullcontext
label_desc: Use image node_id 10 for calling a global function with example usage: load_using_loader(url_or_handle, decompressor, loader, cache) and returns: result