class_docstr: Example of a form validation action.
docstr: Validate num_people value.
code: def validate_num_people(
      self,
      value: Text,
      dispatcher: CollectingDispatcher,
      tracker: Tracker,
      domain: Dict[Text, Any],
  ) -> Dict[Text, Any]:
      """Validate num_people value."""
  
      if self.is_int(value) and int(value) > 0:
          return {"num_people": value}
      else:
          dispatcher.utter_message(response="utter_wrong_num_people")
          # validation failed, set slot to None
          return {"num_people": None}
  
file_path: rasa/examples/formbot/actions/actions.py
imports: from typing import Dict, Text, Any, List, Union
  from rasa_sdk import Tracker
  from rasa_sdk.executor import CollectingDispatcher
  from rasa_sdk.forms import FormValidationAction
label_desc: Use image node_id 5 for calling the ValidateRestaurantForm obj's underlying member method code with example usage: obj.validate_num_people(value, dispatcher, tracker, domain) and returns: dict, dict