write_openai_batch_file function

Write an OpenAI batch table to a JSONL file