code: def import_or_raise(library, error_msg):
      """
      Attempts to import the requested library.  If the import fails, raises an
      ImportErorr with the supplied
  
      Args:
          library (str): the name of the library
          error_msg (str): error message to return if the import fails
      """
      try:
          return importlib.import_module(library)
      except ImportError:
          raise ImportError(error_msg)
  
file_path: featuretools/featuretools/utils/gen_utils.py
imports: import importlib
  import logging
  import re
  import sys
  from enum import Enum
  from tqdm import tqdm
label_desc: Use image node_id 4 for calling a global function with example usage: import_or_raise(library, error_msg) and returns: importlib