Which of the following is the correct way to add a background task for file processing in a FastAPI endpoint?
Adef upload(file: UploadFile, background_tasks: BackgroundTasks): process_file(file)
Bdef upload(file: UploadFile): process_file(file) background_tasks.add_task()
Cdef upload(file: UploadFile): background_tasks = BackgroundTasks() process_file(file)
Ddef upload(file: UploadFile, background_tasks: BackgroundTasks): background_tasks.add_task(process_file, file)