code: def on_job_complete():
      # this is only intended to work if 1 worker is used (since on-job-complete runs once across all workers)
      json_output = json.dumps(app.numbers_list)
      s3.put_object(
          Bucket=app.bucket, Key=f"{app.key}.json", Body=json_output
      )
  
file_path: cortex/test/apis/batch/sum/app/main.py
imports: import os
  import boto3
  import json
  import re
  from typing import List
  from fastapi import FastAPI, status
  from fastapi.responses import PlainTextResponse
label_desc: Use image node_id 4 for calling a global function with example usage: on_job_complete() without return types