class_docstr: Load Predefined Pipelines
class_docstr_tok: ["Load","Predefined","Pipelines"]
code: def load_pipeline(name: str, tag: str = "main", latest: bool = False):
      with PipelineLoader._lock:
          file_path = pathlib.Path(name)
          if file_path.is_file():
              new_name = hashlib.sha256(
                  name.encode("utf-8")
              ).hexdigest()
              PipelineLoader._load_pipeline_from_file(
                  new_name, file_path
              )
          else:
              if not PipelineLoader._load_builtins(name):
                  if "/" not in name:
                      name = "towhee/" + name
                  path = get_pipeline(name, tag, latest)
                  pipe_name = name.replace("-", "_")
                  file_path = path / (pipe_name.split("/")[-1] + ".py")
                  new_name = pipe_name + "." + tag
                  PipelineLoader._load_pipeline_from_file(
                      new_name, file_path
                  )
  
file_path: towhee/towhee/runtime/pipeline_loader.py
imports: import pathlib
  import hashlib
  import threading
  import importlib
  from towhee.pipelines import get_builtin_pipe_file
  from towhee.hub import get_pipeline
label_desc: Use image node_id 4 for calling the PipelineLoader obj's underlying member method code with example usage: obj.load_pipeline(name, tag, latest) without return types