original_docstring:  Decorator that will short circuit and return immediately before calling
      the decorated handler if the event is a "ping" event.
  
      Args:
          handler (func): a handler function with the signature (event, context) -> result
  
      Returns:
          handler (func): a pingable lambda handler
      
docstring: Decorator that will short circuit and return immediately before calling
  the decorated handler if the event is a "ping" event.
docstring_tokens: Decorator that will short circuit and return immediately before calling the decorated handler if the event is a " ping " event .
code: def pingable(handler):
      """ Decorator that will short circuit and return immediately before calling
      the decorated handler if the event is a "ping" event.
  
      Args:
          handler (func): a handler function with the signature (event, context) -> result
  
      Returns:
          handler (func): a pingable lambda handler
      """
      def handler_wrapper(event, context, **kwargs):
          if event.get('detail-type') == 'Scheduled Event' and event.get('source') == 'aws.events':
              logger.debug('Ping received, keeping function alive')
              return 'info: ping'
          return handler(event, context, **kwargs)
  
      return handler_wrapper
code_tokens: def pingable ( handler ) : def handler_wrapper ( event , context , ** kwargs ) : if event . get ( 'detail-type' ) == 'Scheduled Event' and event . get ( 'source' ) == 'aws.events' : logger . debug ( 'Ping received, keeping function alive' ) return 'info: ping' return handler ( event , context , ** kwargs ) return handler_wrapper
short_docstring: Decorator that will short circuit and return immediately before calling
  the decorated handler if the event is a "ping" event.
short_docstring_tokens: Decorator that will short circuit and return immediately before calling the decorated handler if the event is a " ping " event .
comment: """ Decorator that will short circuit and return immediately before calling
      the decorated handler if the event is a "ping" event.
  
      Args:
          handler (func): a handler function with the signature (event, context) -> result
  
      Returns:
          handler (func): a pingable lambda handler
      """