code: def build_dist_whl(args):
      """
      Function to build the wheel files for torchserve, model-archiver and workflow-archiver
      """
      binaries = [
          "torchserve",
          "torch-model-archiver",
          "torch-workflow-archiver",
      ]
      if args.nightly:
          print(
              "## Started torchserve, model-archiver and workflow-archiver nightly build"
          )
          create_wheel_cmd = "python setup.py "
      else:
          print(
              "## Started torchserve, model-archiver and workflow-archiver build"
          )
          create_wheel_cmd = "python setup.py bdist_wheel --release"
  
      for binary in binaries:
          if "serve" in binary:
              cur_dir = REPO_ROOT
          else:
              cur_dir = os.path.join(REPO_ROOT, binary[len("torch-") :])
  
          os.chdir(cur_dir)
  
          cur_wheel_cmd = (
              create_wheel_cmd
              + "--override-name "
              + binary
              + "-nightly"
              + " bdist_wheel"
              if args.nightly
              else create_wheel_cmd
          )
  
          # Build wheel
          print(
              f"## In directory: {os.getcwd()} | Executing command: {cur_wheel_cmd}"
          )
  
          if not args.dry_run:
              build_exit_code = os.system(cur_wheel_cmd)
              # If any one of the steps fail, exit with error
              if build_exit_code != 0:
                  sys.exit(f"## {binary} build Failed !")
  
file_path: serve/binaries/build.py
imports: import argparse
  import glob
  import os
  import sys
  from binaries.conda.build_packages import conda_build, install_conda_build, install_miniconda
  from ts_scripts.utils import is_conda_build_env, is_conda_env
label_desc: Use image node_id 1 for calling a global function with example usage: build_dist_whl(args) without return types