class_docstr: Test class for `SacreBLEUScore` metric.
class_docstr_tok: ["Test","class","for","`","SacreBLEUScore","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_bleu_score_class(
      self, ddp, preds, targets, tokenize, lowercase
  ):
      """Test class implementation of metric."""
      metric_args = {"tokenize": tokenize, "lowercase": lowercase}
      original_sacrebleu = partial(
          _sacrebleu_fn, tokenize=tokenize, lowercase=lowercase
      )
  
      self.run_class_metric_test(
          ddp=ddp,
          preds=preds,
          targets=targets,
          metric_class=SacreBLEUScore,
          reference_metric=original_sacrebleu,
          metric_args=metric_args,
      )
  
file_path: torchmetrics/tests/unittests/text/test_sacre_bleu.py
imports: from functools import partial
  from typing import Sequence
  import pytest
  from torch import Tensor, tensor
  from torchmetrics.functional.text.sacre_bleu import AVAILABLE_TOKENIZERS, _TokenizersLiteral, sacre_bleu_score
  from torchmetrics.text.sacre_bleu import SacreBLEUScore
  from torchmetrics.utilities.imports import _SACREBLEU_AVAILABLE
  from unittests.text.helpers import TextTester
  from unittests.text.inputs import _inputs_multiple_references
label_desc: Use image node_id 1 for calling the TestSacreBLEUScore obj's underlying member method code with example usage: obj.test_bleu_score_class(ddp, preds, targets, tokenize, lowercase) without return types