code: def test_translate_score(self):
      # test translate score
      score = TranslateScore(
          ori_dataset, trans_dataset, "x", "bleu"
      ).score
      real_score = [1.0, 0.707, 0.5, 0.0, 0.0]
      for i, j in zip(score, real_score):
          self.assertAlmostEqual(i, j, 3)
  
      score = TranslateScore(
          ori_dataset, trans_dataset, "x", "chrf"
      ).score
      real_score = [1.0, 0.745, 0.696, 0.617, 0.638]
      for i, j in zip(score, real_score):
          self.assertAlmostEqual(i, j, 3)
  
      score = TranslateScore(
          ori_dataset, trans_dataset, "x", "meteor"
      ).score
      real_score = [0.999, 0.865, 0.865, 0.878, 0.867]
      for i, j in zip(score, real_score):
          self.assertAlmostEqual(i, j, 3)
  
file_path: textflint/test/generation/validator/test_validator.py
imports: import unittest
  from textflint.input.component.sample.sa_sample import *
  from textflint.generation.validator.max_words_perturbed import MaxWordsPerturbed
  from textflint.generation.validator.edit_distance import EditDistance
  from textflint.generation.validator.translate_score import TranslateScore
  from textflint.generation.validator.gpt2_perplexity import GPT2Perplexity
  from textflint.input.dataset.dataset import Dataset
label_desc: Use image node_id 4 for calling the TestValidator obj's underlying member method code with example usage: obj.test_translate_score() without return types