docs: def inject_request_ids_into_environment(func):
      """Decorator for the Lambda handler to inject request IDs for logging."""
  
      @wraps(func)
      def wrapper(event, context):
          # This might not always be an API Gateway event, so only log the
          # request ID, if it looks like to be coming from there.
          if 'requestContext' in event:
              os.environ[ENV_APIG_REQUEST_ID] = event['requestContext'].get(
                  'requestId', 'N/A')
          os.environ[ENV_LAMBDA_REQUEST_ID] = context.aws_request_id
          return func(event, context)
  
      return wrapper