code: def main():
      # parse args
      if len(sys.argv) != 3:
          print("usage: python submit.py <cortex-env> <dest-s3-dir>")
          sys.exit(1)
      env_name = sys.argv[1]
      dest_s3_dir = sys.argv[2]
  
      # get task endpoint
      cx = cortex.client(env_name)
      task_endpoint = cx.get_api("iris-classifier-trainer")["endpoint"]
  
      # submit job
      job_spec = {"config": {"dest_s3_dir": dest_s3_dir}}
      response = requests.post(task_endpoint, json=job_spec)
      print(json.dumps(response.json(), indent=2))
  
imports: import sys
  import json
  import requests
  import cortex
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types