code: def _get_extension(url_or_handle):
      compression_ext = None
      if is_handle(url_or_handle):
          path_without_ext, ext = os.path.splitext(url_or_handle.name)
      else:
          path_without_ext, ext = os.path.splitext(url_or_handle)
  
      if ext in decompressors:
          decompressor_ext = ext
          _, ext = os.path.splitext(path_without_ext)
      else:
          decompressor_ext = None
      if not ext:
          raise RuntimeError("No extension in URL: " + url_or_handle)
      return ext, decompressor_ext
  
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 12 for calling a global function with example usage: _get_extension(url_or_handle) and returns: ext,  decompressor_ext