code: def test_corpus_bleu_with_bad_sentence(self):
      hyp = "Teo S yb , oe uNb , R , T t , , t Tue Ar saln S , , 5istsi l , 5oe R ulO sae oR R"
      ref = str(
          "Their tasks include changing a pump on the faulty stokehold ."
          "Likewise , two species that are very similar in morphology "
          "were distinguished using genetics ."
      )
      references = [[ref.split()]]
      hypotheses = [hyp.split()]
      try:  # Check that the warning is raised since no. of 2-grams < 0.
          with self.assertWarns(UserWarning):
              # Verify that the BLEU output is undesired since no. of 2-grams < 0.
              self.assertAlmostEqual(
                  corpus_bleu(references, hypotheses), 0.0, places=4
              )
      except (
          AttributeError
      ):  # unittest.TestCase.assertWarns is only supported in Python >= 3.2.
          self.assertAlmostEqual(
              corpus_bleu(references, hypotheses), 0.0, places=4
          )
  
imports: import unittest
  import numpy
  from nltk.data import find
  from nltk.translate.bleu_score import SmoothingFunction, brevity_penalty, closest_ref_length, corpus_bleu, modified_precision, sentence_bleu
label_desc: Use image node_id 1 for calling the TestBLEUWithBadSentence obj's underlying member method code with example usage: obj.test_corpus_bleu_with_bad_sentence() without return types