code: def main():
      parser = argparse.ArgumentParser()
  
      parser.add_argument(
          "--instance-type",
          default="p3.2xlarge",
          help="Specify the instance type you want to run the test on. Default: p3.2xlarge",
      )
  
      parser.add_argument(
          "--region",
          default="us-west-2",
          help="Specify the aws region in which you want associated ec2 instance to be spawned",
      )
  
      parser.add_argument(
          "--ami-id",
          default="ami-0bc4efd197db7d3ad",
          help="Specify an Ubuntu Base DLAMI only. This AMI type ships with nvidia drivers already setup. Using other AMIs might"
          "need non-trivial installations on the AMI. AMI-ids differ per aws region.",
      )
  
      arguments = parser.parse_args()
  
      instance_type = arguments.instance_type
      region = arguments.region
      ami_id = arguments.ami_id
  
      launch_ec2_instance(region, instance_type, ami_id)
  
file_path: serve/ci/launcher/launch_test.py
imports: import argparse
  import boto3
  import datetime
  import random
  import subprocess
  import os
  import time
  from botocore.config import Config
  from fabric2 import Connection
  from invoke import run
  from utils import LOGGER, GPU_INSTANCES
  from utils import ec2
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types