code: def is_request_type(request_type):
      # type: (str) -> Callable[[HandlerInput], bool]
      
      def can_handle_wrapper(handler_input):
          # type: (HandlerInput) -> bool
          return (handler_input.request_envelope.request.object_type ==
                  request_type)
      return can_handle_wrapper
docs: A predicate function returning a boolean, when request type is
      the passed-in type.
  
      The function can be applied on a
      :py:class:`ask_sdk_core.handler_input.HandlerInput`, to check
      if the input request type is the passed in request type.
  
      :param request_type: request type to be matched with the input's request
      :type request_type: str
      :return: Predicate function that can be used to check the type of
          the request
      :rtype: Callable[[HandlerInput], bool]