docs: function useStreamEventRecordAsMessage(record, batch, extractMessageFromRecord, context) {
    if (!record || typeof record !== 'object') {
      context.warn(`Adding invalid record (${record}) as an unusable record`);
      return Promise.resolve([{unusableRec: batch.addUnusableRecord(record, undefined, `invalid record (${record})`, context)}]);
    }
  
    const messageOutcome = Try.try(() => copy(record, deep));
  
    // Add the "message" or unusable record to the batch
    return messageOutcome.map(
      message => {
        return [batch.addMessage(message, record, undefined, context)];
      },
      err => {
        return [{unusableRec: batch.addUnusableRecord(record, undefined, err.message, context)}];
      }
    ).toPromise();
  }