input: Write a function to create a simple chatbot using Python and state diagrams. The function should initialize with a starting state and handle user input to transition between states based on predefined replies. The function should also record the conversation and print it at the end.
  assert create_chatbot() is None
  assert create_chatbot() is None
  assert create_chatbot() is None
  assert create_chatbot() is None
  assert create_chatbot() is None
output: def create_chatbot():
      states = {
          'start': {'hi': 'greeting', 'bye': 'end'},
          'greeting': {'how are you?': 'feeling', 'bye': 'end'},
          'feeling': {'good': 'end', 'bad': 'end'},
          'end': {}
      }
      current_state = 'start'
      conversation = []
      
      while current_state != 'end':
          user_input = input("You: ")
          conversation.append(f"You: {user_input}")
          if user_input in states[current_state]:
              current_state = states[current_state][user_input]
              conversation.append(f"Bot: {current_state}")
          else:
              conversation.append("Bot: I don't understand that.")
      
      print("\nConversation:")
      for line in conversation:
          print(line)
      
      return None