code: def prime_numbers(body: Body):
      return {
          "prime_numbers": list(
              generate_primes(body.primes_to_generate)
          )
      }
  
file_path: cortex/test/apis/realtime/prime-generator/app/main.py
imports: from typing import DefaultDict
  from fastapi import FastAPI
  from pydantic import BaseModel
label_desc: Use image node_id 3 for calling a global function with example usage: prime_numbers(body) and returns: dict