input: def simple_chatbot_simulation():
      """Create a simple chatbot using state diagrams. The chatbot will follow a predefined
      set of states, each with a specific message and possible replies. The conversation
      starts with state0, and the chatbot responds based on the user's input according to
      the specified state transitions. When a terminal state is reached, the conversation
      ends.
      >>> simple_chatbot_simulation()
      Hello! How can I help you?
      >> I need some advice
      Sure, what kind of advice do you need?
      >> Career advice
      It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.
      ========================
      Conversation:
      Hello! How can I help you?
      >> I need some advice
      Sure, what kind of advice do you need?
      >> Career advice
      It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.
      """
  
output:     states = {
          'state0': {
              'message': 'Hello! How can I help you?',
              'replies': {
                  'I need some advice': 'state1'
              }
          },
          'state1': {
              'message': 'Sure, what kind of advice do you need?',
              'replies': {
                  'Career advice': 'state2'
              }
          },
          'state2': {
              'message': 'It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.',
              'replies': {}
          }
      }
  
      current_state = 'state0'
  
      while current_state in states:
          print(states[current_state]['message'])
          if not states[current_state]['replies']:
              break
          user_input = input(">> ")
          if user_input in states[current_state]['replies']:
              current_state = states[current_state]['replies'][user_input]
          else:
              print("Sorry, I didn't understand that.")
  
      print("========================")
      print("Conversation:")
      for state in states:
          print(states[state]['message'])
          for reply in states[state]['replies']:
              print(f">> {reply}")