code: def _get_embedding_op(config):
      if config.device == -1:
          device = "cpu"
      else:
          device = config.device
  
      model_list = [
          "isc",
          "gmixer_24_224",
          "resmlp_12_224",
          "coat_lite_mini",
          "deit_small_patch16_224",
          "pit_xs_224",
          "convit_small",
          "tnt_s_patch16_224",
          "pit_ti_224",
          "resmlp_36_distilled_224",
          "convit_tiny",
          "coat_lite_small",
          "coat_lite_tiny",
          "deit_tiny_patch16_224",
          "cait_xxs24_224",
          "cait_s24_224",
          "cait_xxs36_224",
          "vit_small_patch32_224",
          "vit_small_patch32_384",
          "vit_small_r26_s32_224",
          "vit_small_patch16_224",
      ]
      if config.model == "isc":
          return True, ops.image_embedding.isc(
              img_size=config.img_size, device=device
          )
      elif config.model in model_list:
          return True, ops.image_embedding.timm(
              model_name=config.model, device=device
          )
      raise RuntimeError(
          f"Unkown model: {config.model}, only support models in {model_list}."
      )
  
file_path: towhee/towhee/pipelines/video_embedding.py
imports: from typing import Optional
  from pydantic import BaseModel
  from towhee import ops, pipe, AutoPipes, AutoConfig
label_desc: Use image node_id 3 for calling a global function with example usage: _get_embedding_op(config) and returns: True,  ops, True,  ops