code: def _require(*modules, **mapping):
      """Helper for @require decorator."""
      from ipyparallel.error import UnmetDependency
      from ipyparallel.serialize import uncan
  
      user_ns = globals()
      for name in modules:
          try:
              exec("import %s" % name, user_ns)
          except ImportError:
              raise UnmetDependency(name)
  
      for name, cobj in mapping.items():
          user_ns[name] = uncan(cobj, user_ns)
      return True
  
file_path: ipyparallel/ipyparallel/controller/dependency.py
imports: from types import ModuleType
  from ipyparallel.client.asyncresult import AsyncResult
  from ipyparallel.error import UnmetDependency
  from ipyparallel.serialize import can
  from ipyparallel.util import interactive
label_desc: Use image node_id 1 for calling a global function with example usage: _require() and returns: True