docstr: Test that the ``clean_whitespace`` preprocessor is used during
  the training process.
docstr_tok: ["Test","that","the","``","clean_whitespace","``","preprocessor","is","used","during","the","training","process","."]
code: def test_training_cleans_whitespace(self):
      """
      Test that the ``clean_whitespace`` preprocessor is used during
      the training process.
      """
      self.chatbot.preprocessors = [preprocessors.clean_whitespace]
  
      self.trainer.train(
          [
              "Can I help you with anything?",
              "No, I     think I am all set.",
              "Okay, have a nice day.",
              "Thank you, you too.",
          ]
      )
  
      response = self.chatbot.get_response(
          "Can I help you with anything?"
      )
  
      self.assertEqual(response.text, "No, I think I am all set.")
  
imports: from tests.base_case import ChatBotTestCase
  from chatterbot.trainers import ListTrainer
  from chatterbot import preprocessors
label_desc: Use image node_id 2 for calling the ListTrainingTests obj's underlying member method code with example usage: obj.test_training_cleans_whitespace() without return types