function decorateHandler(handler, options) {
  handler[Symbol.for('aws.lambda.runtime.handler.streaming')] = 'response'
  if (typeof options?.highWaterMark === 'number') {
    handler[Symbol.for('aws.lambda.runtime.handler.highWaterMark')] = options.highWaterMark
  }
  return handler
}
Decorate the provided AWS Lambda handler in the manner AWS Lambda expects
streaming capable handlers to be decorated.

@param {function} handler The user's Lambda application entry point
@param {object} options An object which optionally may contain a highWaterMark key
@returns {function} The same function, decorated with a symbol to indicate response streaming