class_docstr: Load pre-defined pipelines. Some available pipelines are under [towhee/pipelines](https://github.com/towhee-io/towhee/tree/main/towhee/pipelines).
  And also put the predefined pipelines on the [Towhee Hub](https://towhee.io/).
  
  Examples:
      >>> from towhee import AutoPipes, AutoConfig
      >>> # config for sentence_embedding pipeline
      >>> config = AutoConfig.load_config('sentence_embedding')
      >>> config.model = 'all-MiniLM-L6-v2'
      >>> embed_pipe = AutoPipes.pipeline('sentence_embedding', config=config)
      >>> print(embed_pipe('How are you?').to_list())
class_docstr_tok: ["Load","pre-defined","pipelines",".","Some","available","pipelines","are","under","[","towhee\/pipelines","]","(","https",":","\/\/github.com\/towhee-io\/towhee\/tree\/main\/towhee\/pipelines",")",".","And","also","put","the","predefined","pipelines","on","the","[","Towhee","Hub","]","(","https",":","\/\/towhee.io\/",")",".","Examples",":",">",">",">","from","towhee","import","AutoPipes",",","AutoConfig",">",">",">","#","config","for","sentence_embedding","pipeline",">",">",">","config","=","AutoConfig.load_config","(","'sentence_embedding","'",")",">",">",">","config.model","=","'all-MiniLM-L6-v2'",">",">",">","embed_pipe","=","AutoPipes.pipeline","(","'sentence_embedding","'",",","config=config",")",">",">",">","print","(","embed_pipe","(","'How","are","you","?","'",")",".to_list","(",")",")"]
code: def register(pipe_def):
      @wraps(pipe_def)
      def wrapper(*args, **kwargs):
          return pipe_def(*args, **kwargs)
  
      name = get_pipe_name()
      if name is not None:
          AutoPipes._PIPES_DEF[name] = wrapper
      return wrapper
  
file_path: towhee/towhee/runtime/auto_pipes.py
imports: from functools import wraps
  from typing import Optional
  import threading
  import contextvars
  import contextlib
  import towhee.runtime.pipeline_loader
  from towhee.utils.log import engine_log
label_desc: Use image node_id 2 for calling the AutoPipes obj's underlying member method code with example usage: obj.register(pipe_def) and returns: wrapper, pipe_def