code: def add_timeout_arg(parser):
      """Add the timeout argument to a parser"""
  
      def _validator(val):
          """Validate acceptable inputs for the timeout of the function"""
          error = "Value for 'timeout' must be an integer between 10 and 900"
          try:
              timeout = int(val)
          except ValueError:
              raise parser.error(error)
  
          if not 10 <= timeout <= 900:
              raise parser.error(error)
  
          return timeout
  
      parser.add_argument(
          "-t",
          "--timeout",
          required=True,
          help=(
              "The AWS Lambda function timeout value, in seconds. "
              "This should be an integer between 10 and 900."
          ),
          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 2 for calling a global function with example usage: add_timeout_arg(parser) and returns: timeout