code: def test_no_and_uniform_weights_functional():
      """Test that implementation works with no weights and uniform weights, and it gives the same result."""
      preds = ["My full pytorch-lightning"]
      targets = [
          ["My full pytorch-lightning test", "Completely Different"]
      ]
      no_weights_score = sacre_bleu_score(preds, targets, n_gram=2)
      uniform_weights_score = sacre_bleu_score(
          preds, targets, n_gram=2, weights=[0.5, 0.5]
      )
      assert no_weights_score == uniform_weights_score
  
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 2 for calling a global function with example usage: test_no_and_uniform_weights_functional() without return types