class_docstr: Auto configuration.
class_docstr_tok: ["Auto","configuration","."]
code: def register(config):
      @wraps(config)
      def wrapper(*args, **kwargs):
          return config(*args, **kwargs)
  
      name = get_config_name()
      if name is not None:
          AutoConfig._REGISTERED_CONFIG[name] = wrapper
      return wrapper
  
file_path: towhee/towhee/runtime/auto_config.py
imports: import threading
  from functools import wraps
  import contextvars
  import contextlib
  import towhee.runtime.pipeline_loader
  import towhee.runtime.node_config
  from towhee.utils.log import engine_log
label_desc: Use image node_id 2 for calling the AutoConfig obj's underlying member method code with example usage: obj.register(config) and returns: wrapper, config