class_docstr: mock http client
class_docstr_tok: ["mock","http","client"]
code: def set_pipeline(pipeline):
      with TemporaryDirectory(dir="./") as root:
          pf = Path(root) / "pipe.pickle"
          with open(pf, "wb") as f:
              pickle.dump(pipeline.dag_repr, f)
  
          MockInferenceServerClient.PIPE = (
              pipe_model.TritonPythonModel()
          )
          MockInferenceServerClient.PIPE._load_pipeline(pf)
  
imports: from typing import List
  import unittest
  from unittest import mock
  from pathlib import Path
  from tempfile import TemporaryDirectory
  import numpy
  from towhee import pipe
  from towhee.serve.triton import triton_client
  from towhee.utils.thirdparty.dill_util import dill
  import towhee.serve.triton.bls.pipeline_model
  from towhee.serve.triton.bls.python_backend_wrapper import pb_utils
  from towhee.utils.serializer import from_json
label_desc: Use image node_id 2 for calling the MockInferenceServerClient obj's underlying member method code with example usage: obj.set_pipeline(pipeline) without return types