class_docstr: Auto configuration.
class_docstr_tok: ["Auto","configuration","."]
docstr: Load config from pre-defined pipeline.
  
  Examples:
      >>> from towhee import AutoConfig
      >>> config = AutoConfig.load_config('sentence_embedding')
      SentenceSimilarityConfig(model='all-MiniLM-L6-v2', openai_api_key=None, customize_embedding_op=None, normalize_vec=True, device=-1)
docstr_tok: ["Load","config","from","pre-defined","pipeline",".","Examples",":",">",">",">","from","towhee","import","AutoConfig",">",">",">","config","=","AutoConfig.load_config","(","'sentence_embedding","'",")","SentenceSimilarityConfig","(","model='all-MiniLM-L6-v2","'",",","openai_api_key=None",",","customize_embedding_op=None",",","normalize_vec=True",",","device=-1",")"]
code: def load_config(name: str, *args, **kwargs):
      """
      Load config from pre-defined pipeline.
  
      Examples:
          >>> from towhee import AutoConfig
          >>> config = AutoConfig.load_config('sentence_embedding')
          SentenceSimilarityConfig(model='all-MiniLM-L6-v2', openai_api_key=None, customize_embedding_op=None, normalize_vec=True, device=-1)
      """
      with AutoConfig._lock:
          if name in AutoConfig._REGISTERED_CONFIG:
              return AutoConfig._REGISTERED_CONFIG[name](
                  *args, **kwargs
              )
  
          with set_config_name(name):
              pipe_loader.PipelineLoader.load_pipeline(name)
          if name in AutoConfig._REGISTERED_CONFIG:
              return AutoConfig._REGISTERED_CONFIG[name](
                  *args, **kwargs
              )
          engine_log.error("Can not find config: %s", name)
          return None
  
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 3 for calling the AutoConfig obj's underlying member method code with example usage: obj.load_config(name) and returns: None, AutoConfig, AutoConfig