class_docstr: Pipeline to triton models
  
  Use Triton python backend and auto_complete mode.
class_docstr_tok: ["Pipeline","to","triton","models","Use","Triton","python","backend","and","auto_complete","mode","."]
code: def _prepare_config(self) -> bool:
      config_lines = create_modelconfig(
          model_name=self._model_name,
          max_batch_size=None,
          inputs=None,
          outputs=None,
          backend="python",
          enable_dynamic_batching=True,
          preferred_batch_size=None,
          max_queue_delay_microseconds=None,
          instance_count=self._server_conf.get(constant.PARALLELISM),
          device_ids=None,
      )
      with open(
          self._triton_files.config_file, "wt", encoding="utf-8"
      ) as f:
          f.writelines(config_lines)
      return True
  
file_path: towhee/towhee/serve/triton/pipe_to_triton.py
imports: import shutil
  import traceback
  from towhee.serve.triton.triton_files import TritonFiles
  from towhee.serve.triton.bls import PIPELINE_MODEL_FILE
  from towhee.serve.triton.triton_config_builder import create_modelconfig
  from towhee.serve.triton import constant
  from towhee.utils.log import engine_log
label_desc: Use image node_id 3 for calling the PipeToTriton obj's underlying member method code with example usage: obj._prepare_config() and returns: True