code: def import_into(globs, module, names=None, error_on_overwrite=True):
      """Import names from module into the globs dict.
  
      Parameters
      ----------
      """
      mod_names = dir(module)
      if names is not None:
          for name in names:
              assert name in mod_names, f"{name} not found in {module}"
          mod_names = names
  
      for name in mod_names:
          if name in globs and globs[name] is not getattr(module, name):
              error_msg = (
                  f"Attempting to overwrite definition of {name}"
              )
              if error_on_overwrite:
                  raise RuntimeError(error_msg)
              logging.warning("%s", error_msg)
          globs[name] = getattr(module, name)
  
      return globs
  
imports: import doctest
  import logging
  import mxnet
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: import_into(globs, module, names, error_on_overwrite) and returns: globs