code: def docker_torchserve_start():
      prepare_docker_dependency()
      enable_gpu = ""
      if execution_params["image"]:
          docker_image = execution_params["image"]
          if execution_params["gpus"]:
              enable_gpu = f"--gpus {execution_params['gpus']}"
      else:
          if execution_params["gpus"]:
              docker_image = "pytorch/torchserve:latest-gpu"
              enable_gpu = f"--gpus {execution_params['gpus']}"
          else:
              docker_image = "pytorch/torchserve:latest"
          execute(f"docker pull {docker_image}", wait=True)
  
      backend_profiling = ""
      if execution_params["backend_profiling"]:
          backend_profiling = "-e TS_BENCHMARK=True"
  
      # delete existing ts container instance
      click.secho(
          "*Removing existing ts container instance...", fg="green"
      )
      execute("docker rm -f ts", wait=True)
  
      click.secho(
          f"*Starting docker container of image {docker_image} ...",
          fg="green",
      )
      inference_port = urlparse(execution_params["inference_url"]).port
      management_port = urlparse(
          execution_params["management_url"]
      ).port
      docker_run_cmd = (
          f"docker run {execution_params['docker_runtime']} {backend_profiling} --name ts --user root -p "
          f"127.0.0.1:{inference_port}:{inference_port} -p 127.0.0.1:{management_port}:{management_port} "
          f"-v {execution_params['tmp_dir']}:/tmp {enable_gpu} -itd {docker_image} "
          f'"torchserve --start --model-store /home/model-server/model-store '
          f"\--workflow-store /home/model-server/wf-store "
          f"--ts-config /tmp/benchmark/conf/{execution_params['config_properties_name']} > "
          f'/tmp/benchmark/logs/model_metrics.log"'
      )
      execute(docker_run_cmd, wait=True)
      time.sleep(5)
  
imports: import csv
  import json
  import os
  import re
  import shutil
  import sys
  import tempfile
  import time
  from subprocess import PIPE, Popen
  from urllib.parse import urlparse
  import click
  import click_config_file
  import matplotlib.pyplot
  import numpy
  import pandas
  import requests
label_desc: Use image node_id 11 for calling a global function with example usage: docker_torchserve_start() without return types