code: def build(args):
      # Build dist wheel files
      build_dist_whl(args)
  
      os.chdir(REPO_ROOT)
  
      if not args.dry_run:
          ts_wheel_path = glob.glob(
              os.path.join(REPO_ROOT, "dist", "*.whl")
          )[0]
          ma_wheel_path = glob.glob(
              os.path.join(REPO_ROOT, "model-archiver", "dist", "*.whl")
          )[0]
          wa_wheel_path = glob.glob(
              os.path.join(
                  REPO_ROOT, "workflow-archiver", "dist", "*.whl"
              )
          )[0]
  
      else:
          ts_wheel_path = os.path.join(REPO_ROOT, "dist", "*.whl")
          ma_wheel_path = os.path.join(
              "model-archiver", "dist", "*.whl"
          )
          wa_wheel_path = os.path.join(
              "workflow-archiver", "dist", "*.whl"
          )
  
      print(f"## TorchServe wheel location: {ts_wheel_path}")
      print(f"## Model archiver wheel location: {ma_wheel_path}")
      print(f"## Workflow archiver wheel location: {ma_wheel_path}")
  
      # Build TS & MA on Conda if available
      conda_build_exit_code = 0
      if not is_conda_env():
          install_miniconda(args.dry_run)
  
      if not is_conda_build_env():
          install_conda_build(args.dry_run)
  
      conda_build_exit_code = conda_build(
          ts_wheel_path,
          ma_wheel_path,
          wa_wheel_path,
          args.nightly,
          args.dry_run,
      )
  
      # If conda build fails, exit with error
      if conda_build_exit_code != 0:
          sys.exit("## Conda 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 2 for calling a global function with example usage: build(args) without return types