code: def benchmark_env_setup(bm_config, skip_ts_install, nightly):
      install_torchserve(
          skip_ts_install,
          bm_config["hardware"],
          bm_config["version"],
          nightly,
      )
      setup_benchmark_path(bm_config["model_config_path"])
      build_model_json_config(bm_config["models"])
      enable_launcher_with_logical_core(bm_config["hardware"])
  
imports: import argparse
  import datetime
  import os
  import shutil
  from subprocess import Popen
  import ruamel.yaml
  from utils import gen_md_report, gen_metrics_json, gen_model_config_json
label_desc: Use image node_id 2 for calling a global function with example usage: benchmark_env_setup(bm_config, skip_ts_install, nightly) without return types