code: def upload_pypi_packages(args, WHL_PATHS):
      """
      Takes a list of path values and uploads them to pypi using twine, using token stored in environment variable
      """
      dry_run = args.dry_run
  
      # Note: TWINE_USERNAME and TWINE_PASSWORD are expected to be set in the environment
      for dist_path in WHL_PATHS:
          if args.test_pypi:
              try_and_handle(
                  f"twine upload {dist_path}/* --username __token__ --repository-url https://test.pypi.org/legacy/",
                  dry_run,
              )
          else:
              try_and_handle(
                  f"twine upload --username __token__ {dist_path}/*",
                  dry_run,
              )
  
imports: import argparse
  import glob
  import os
  import sys
  from ts_scripts.utils import try_and_handle
label_desc: Use image node_id 1 for calling a global function with example usage: upload_pypi_packages(args, WHL_PATHS) without return types