code: def decorate_func(module, name):
      component = getattr(module, name)
      decorated = func()(component)
      return decorated
  
file_path: BigDL/python/nano/src/bigdl/nano/automl/utils/register_modules.py
imports: import importlib
  from bigdl.nano.automl.hpo import obj, func
  from bigdl.nano.utils.common import invalidInputError
  import inspect
  from enum import Enum
  import copy
label_desc: Use image node_id 2 for calling a global function with example usage: decorate_func(module, name) and returns: decorated