docs: function createFinaliseBatchTask(batch, context) {
      // Define a new finalise task definition for the batch & updates the batch with it
      batch.taskDefs.finaliseTaskDef = defineFinaliseBatchTask();
  
      const task = context.taskFactory.createTask(batch.taskDefs.finaliseTaskDef, finaliseTaskOpts);
  
      // Cache it on the batch
      const finalisingTasks = batch.getOrSetFinalisingTasks();
      finalisingTasks[task.name] = task;
  
      return task;
    }