class_docstr: Test class for `SignalNoiseRatio` metric.
class_docstr_tok: ["Test","class","for","`","SignalNoiseRatio","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_snr(self, preds, target, ref_metric, zero_mean, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          SignalNoiseRatio,
          reference_metric=partial(
              _average_metric, metric_func=ref_metric
          ),
          metric_args={"zero_mean": zero_mean},
      )
  
imports: from functools import partial
  from typing import Callable
  import pytest
  import torch
  from mir_eval.separation import bss_eval_images
  from torch import Tensor
  from torchmetrics.audio import SignalNoiseRatio
  from torchmetrics.functional.audio import signal_noise_ratio
  from unittests import _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestSNR obj's underlying member method code with example usage: obj.test_snr(preds, target, ref_metric, zero_mean, ddp) without return types