code: def has_module(module_name):
      """Check to see if a python module is available."""
      if sys.version_info > (3, 4):
          import importlib
  
          name_parts = module_name.split(".")
          for i in range(len(name_parts)):
              if (
                  importlib.util.find_spec(
                      ".".join(name_parts[: i + 1])
                  )
                  is None
              ):
                  return False
          return True
      else:  # pragma: no cover
          import imp
  
          try:
              imp.find_module(module_name)
          except ImportError:
              return False
          return True
  
imports: from collections import OrderedDict
  import numpy
  import os
  import re
  import struct
  import sys
  import time
  import logging
label_desc: Use image node_id 9 for calling a global function with example usage: has_module(module_name) and returns: True, True, False, False