code: def _get_embedding_op(config):
      if config.device == -1:
          device = "cpu"
      else:
          device = config.device
  
      if config.customize_embedding_op is not None:
          return True, config.customize_embedding_op
  
      if config.model in _hf_models:
          return True, ops.sentence_embedding.transformers(
              model_name=config.model, device=device
          )
      if config.model in _sbert_models:
          return True, ops.sentence_embedding.sbert(
              model_name=config.model, device=device
          )
      if config.model in _openai_models:
          return False, ops.sentence_embedding.openai(
              model_name=config.model, api_key=config.openai_api_key
          )
      raise RuntimeError(
          "Unknown model: [%s], only support: %s"
          % (config.model, _hf_models + _openai_models)
      )
  
imports: from typing import Optional, Any
  from pydantic import BaseModel
  from towhee import ops, pipe, AutoPipes, AutoConfig
label_desc: Use image node_id 1 for calling a global function with example usage: _get_embedding_op(config) and returns: True,  config, True,  ops, True,  ops, False,  ops