code: def main():
      if len(sys.argv) < 2:
          print("Missing command")
          sys.exit(1)
  
      cmd = sys.argv[1]
      args = sys.argv[2:]
  
      if cmd == "egg_info":
          egg_dir = _EGG_DIR_BASENAME
          if len(args) > 1 and args[0] == "--egg-base":
              egg_dir = os.path.join(args[1], egg_dir)
          sys.exit(copy_egg_info(egg_dir))
  
      elif cmd == "install":
          destination = find_destination("--user" in args)
  
          record_file = "install-record.txt"
          if "--record" in args:
              i = args.index("--record")
              record_file = args[i + 1]
              if _unsafe_filename(record_file):
                  print("Invalid record_file name", record_file)
                  sys.exit(1)
  
          print("Removing old protobuf files")
          os.system("rm -fR " + destination + "/google/protobuf")
  
          print(
              "Installing Nucleus to "
              + destination
              + " with record file at "
              + record_file
          )
          os.system(
              "cp -R -v google nucleus "
              + destination
              + " | awk '{print substr($3,2,length($3)-2)}' > "
              + record_file
          )
          # Append the .egg-info directory (must include trailing '/') to the record.
          dest_egg_dir = (
              os.path.join(destination, _EGG_DIR_BASENAME) + "/"
          )
          os.system("echo " + dest_egg_dir + " >> " + record_file)
          # End by copying the .egg-info directory to the destination.
          sys.exit(copy_egg_info(dest_egg_dir))
  
      elif cmd == "bdist_wheel":
          print("This package does not support wheel creation.")
          sys.exit(1)
  
      elif cmd == "clean":
          # Nothing to do
          sys.exit(0)
  
      print("Unknown command: ", cmd)
      sys.exit(1)
  
file_path: deepvariant/third_party/nucleus/pip_package/setup.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from distutils import dist
  import distutils.command.install
  import glob
  import os
  import shutil
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: main() without return types