code: def _import_module(
      name, package=None, warn=True, postfix="_py", ignore="_"
  ):
      """Try import all public attributes from module into global namespace.
  
      Existing attributes with name clashes are renamed with prefix.
      Attributes starting with underscore are ignored by default.
  
      Return True on successful import.
  
      """
      import warnings
      from importlib import import_module
  
      try:
          if not package:
              module = import_module(name)
          else:
              module = import_module("." + name, package=package)
      except ImportError as exc:
          if warn:
              warnings.warn(str(exc))
      else:
          for attr in dir(module):
              if ignore and attr.startswith(ignore):
                  continue
              if postfix:
                  if attr in globals():
                      globals()[attr + postfix] = globals()[attr]
                  elif warn:
                      warnings.warn(
                          "no Python implementation of " + attr
                      )
              globals()[attr] = getattr(module, attr)
          return True
  
imports: import math
  import numpy
label_desc: Use image node_id 47 for calling a global function with example usage: _import_module(name, package, warn, postfix, ignore) and returns: True