class_docstr: Test that the search algorithm works correctly with the
  Levenshtein distance comparison function.
class_docstr_tok: ["Test","that","the","search","algorithm","works","correctly","with","the","Levenshtein","distance","comparison","function","."]
docstr: Note, the content of the in_response_to field for each of the
  test statements is only required because the search process will
  filter out any statements that are not in response to something.
docstr_tok: ["Note",",","the","content","of","the","in_response_to","field","for","each","of","the","test","statements","is","only","required","because","the","search","process","will","filter","out","any","statements","that","are","not","in","response","to","something","."]
code: def test_get_closest_statement(self):
      """
      Note, the content of the in_response_to field for each of the
      test statements is only required because the search process will
      filter out any statements that are not in response to something.
      """
      self.chatbot.storage.create_many(
          [
              Statement(
                  text="What is the meaning of life?",
                  in_response_to="...",
              ),
              Statement(text="I am Iron Man.", in_response_to="..."),
              Statement(
                  text="What... is your quest?", in_response_to="..."
              ),
              Statement(
                  text="Yuck, black licorice jelly beans.",
                  in_response_to="...",
              ),
              Statement(
                  text="I hear you are going on a quest?",
                  in_response_to="...",
              ),
          ]
      )
  
      statement = Statement(text="What is your quest?")
  
      results = list(self.search_algorithm.search(statement))
  
      self.assertEqual(len(results), 2)
      self.assertEqual(
          results[-1].text,
          "What... is your quest?",
          msg=results[-1].confidence,
      )
  
imports: from tests.base_case import ChatBotTestCase
  from chatterbot.conversation import Statement
  from chatterbot.search import TextSearch, IndexedTextSearch
  from chatterbot import comparisons
label_desc: Use image node_id 2 for calling the TextSearchComparisonFunctionLevenshteinDistanceComparisonTests obj's underlying member method code with example usage: obj.test_get_closest_statement() without return types