code: def module_not_available(module):
      """Can module be imported?  Returns true if module does NOT import.
  
      This is used to make a decorator to skip tests that require module to be
      available, but delay the 'import numpy' to test execution time.
      """
      try:
          mod = import_module(module)
          mod_not_avail = False
      except ImportError:
          mod_not_avail = True
  
      return mod_not_avail
  
file_path: catboost/contrib/python/ipython/py3/IPython/testing/decorators.py
imports: import os
  import shutil
  import sys
  import tempfile
  import unittest
  from importlib import import_module
  from decorator import decorator
  from .ipunittest import ipdoctest, ipdocstring
label_desc: Use image node_id 5 for calling a global function with example usage: module_not_available(module) and returns: mod_not_avail