code: def register_module_simple(
      target_symtab, subcomponents, component_type, module
  ):
      """register subcomponents in a module to target symtable,
      a simple version without many checks as in register_module.
      subcomponents must be within the vars() of the module"""
      if component_type == COMPONENT_TYPE.CLASS:
          decorator = decorate_cls
      elif component_type == COMPONENT_TYPE.FUNC:
          decorator = decorate_func
      m = importlib.import_module(module)
      for c in subcomponents:
          new_f = decorator(m, c)
          target_symtab[c] = new_f
  
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 4 for calling a global function with example usage: register_module_simple(target_symtab, subcomponents, component_type, module) without return types