code: def import_module(name, deprecated=False, *, required_on=()):
      """Import and return the module to be tested, raising SkipTest if
      it is not available.
  
      If deprecated is True, any module or package deprecation messages
      will be suppressed. If a module is required on a platform but optional for
      others, set required_on to an iterable of platform prefixes which will be
      compared against sys.platform.
      """
      with _ignore_deprecated_imports(deprecated):
          try:
              return importlib.import_module(name)
          except ImportError as msg:
              if sys.platform.startswith(tuple(required_on)):
                  raise
              raise unittest.SkipTest(str(msg))
  
imports: import contextlib
  import _imp
  import importlib
  import importlib.util
  import os
  import shutil
  import sys
  import unittest
  import warnings
  from .os_helper import unlink, temp_dir
label_desc: Use image node_id 5 for calling a global function with example usage: import_module(name, deprecated) and returns: importlib