class_docstr: Build triton image
class_docstr_tok: ["Build","triton","image"]
code: def prepare_dag(self, workspace: Path):
      from towhee.utils.thirdparty.dill_util import dill as pickle
  
      dag = self._towhee_pipeline.dag_repr
      with open(workspace / "dag.pickle", "wb") as f:
          pickle.dump(dag, f, recurse=True)
  
file_path: towhee/towhee/serve/triton/docker_image_builder.py
imports: import json
  import shutil
  import subprocess
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from towhee.serve.triton.dockerfiles import get_dockerfile
label_desc: Use image node_id 2 for calling the DockerImageBuilder obj's underlying member method code with example usage: obj.prepare_dag(workspace) without return types