code: function configureConsumerId(context, awsContext) {
    if (!context.streamProcessing.consumerId) {
      const invokedFunctionNameWithAliasOrVersion = tracking.getInvokedFunctionNameWithAliasOrVersion(context, awsContext);
  
      if (invokedFunctionNameWithAliasOrVersion) {
        // Resolve the suffix to use (if any)
        const suffix = trim(context.streamProcessing.consumerIdSuffix) || '';
        // Derive the consumer id from the invoked Lambda's function name (with alias or version, if any) & optional suffix
        const consumerId = suffix ? `${invokedFunctionNameWithAliasOrVersion}|${suffix}` : invokedFunctionNameWithAliasOrVersion;
        const msg = `Using consumerId (${consumerId})`;
        context.debug ? context.debug(msg) : console.log(msg);
        context.streamProcessing.consumerId = consumerId;
      }
    }
    return context;
  }
docs: Derives the consumer id for the given context and AWS context and then configures the given context with the derived
  consumerId at `context.streamProcessing.consumerId` (if not already configured) .
  @param {StreamConsumerContext} context - the context to configure
  @param {AWSContext|undefined} [awsContext] - the AWS context that was passed to your lambda (defaults to `context.awsContext` if omitted)
  @param {LambdaFunctionNameVersionAndAlias|undefined} [context.invokedLambda] - the name, version & alias of the invoked Lambda function
  @param {string|undefined} [context.streamProcessing.consumerIdSuffix] - an optional suffix to append to the derived consumerId
  @param {string|undefined} [context.streamProcessing.consumerId] - an optional, overriding, previously configured consumerId to use (if any)
  @return {StreamConsumerContext} the given context configured with a consumer id