class_docstr: Test class for `MatchErrorRate` metric.
class_docstr_tok: ["Test","class","for","`","MatchErrorRate","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_mer_class(self, ddp, preds, targets):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp=ddp,
          preds=preds,
          targets=targets,
          metric_class=MatchErrorRate,
          reference_metric=_compute_mer_metric_jiwer,
      )
  
file_path: torchmetrics/tests/unittests/text/test_mer.py
imports: from typing import Callable, List, Union
  import pytest
  from torchmetrics.functional.text.mer import match_error_rate
  from torchmetrics.text.mer import MatchErrorRate
  from torchmetrics.utilities.imports import _JIWER_AVAILABLE
  from unittests.text.helpers import TextTester
  from unittests.text.inputs import _inputs_error_rate_batch_size_1, _inputs_error_rate_batch_size_2
label_desc: Use image node_id 1 for calling the TestMatchErrorRate obj's underlying member method code with example usage: obj.test_mer_class(ddp, preds, targets) without return types