gemini_poll_batch_until_complete function

Poll a Gemini Batch job until completion