code: def get_freeimage_lib():
      """Ensure we have our version of the binary freeimage lib."""
  
      lib = os.getenv("IMAGEIO_FREEIMAGE_LIB", None)
      if lib:  # pragma: no cover
          return lib
  
      # Get filename to load
      # If we do not provide a binary, the system may still do ...
      plat = get_platform()
      if plat and plat in FNAME_PER_PLATFORM:
          try:
              return get_remote_file(
                  "freeimage/" + FNAME_PER_PLATFORM[plat], auto=False
              )
          except InternetNotAllowedError:
              pass
          except NeedDownloadError:
              raise NeedDownloadError(
                  "Need FreeImage library. "
                  "You can obtain it with either:\n"
                  "  - download using the command: "
                  "imageio_download_bin freeimage\n"
                  "  - download by calling (in Python): "
                  "imageio.plugins.freeimage.download()\n"
              )
          except RuntimeError as e:  # pragma: no cover
              logger.warning(str(e))
  
imports: import os
  import sys
  import ctypes
  import threading
  import logging
  import numpy
  from ..core import get_remote_file, load_lib, Dict, resource_dirs, IS_PYPY, get_platform, InternetNotAllowedError, NeedDownloadError
label_desc: Use image node_id 2 for calling a global function with example usage: get_freeimage_lib() and returns: lib, get_remote_file