code: def add_memory_arg(parser):
      """Add the memory argument to a parser"""
  
      def _validator(val):
          """Validate the memory value to ensure it is between 128 and 3008 and a multiple of 64"""
          error = "Value for 'memory' must be an integer between 128 and 3008, and be a multiple of 64"
          try:
              memory = int(val)
          except ValueError:
              raise parser.error(error)
  
          if not 128 <= memory <= 3008:
              raise parser.error(error)
  
          if memory % 64 != 0:
              raise parser.error(error)
  
          return memory
  
      parser.add_argument(
          "-m",
          "--memory",
          required=True,
          help=(
              "The AWS Lambda function max memory value, in megabytes. "
              "This should be an integer between 128 and 3008, and be a multiple of 64."
          ),
          type=_validator,
      )
  
imports: from abc import abstractmethod
  from argparse import _AppendAction, Action, ArgumentTypeError, RawDescriptionHelpFormatter
  import os
  import textwrap
  from streamalert.apps.config import AWS_RATE_RE, AWS_RATE_HELPER
label_desc: Use image node_id 3 for calling a global function with example usage: add_memory_arg(parser) and returns: memory