class_docstr: Test class for `SourceAggregatedSignalDistortionRatio` metric.
class_docstr_tok: ["Test","class","for","`","SourceAggregatedSignalDistortionRatio","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_si_sdr(self, preds, target, scale_invariant, zero_mean, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          SourceAggregatedSignalDistortionRatio,
          reference_metric=partial(
              _average_metric,
              scale_invariant=scale_invariant,
              zero_mean=zero_mean,
          ),
          metric_args={
              "scale_invariant": scale_invariant,
              "zero_mean": zero_mean,
          },
      )
  
file_path: torchmetrics/tests/unittests/audio/test_sa_sdr.py
imports: from functools import partial
  import pytest
  import torch
  from torch import Tensor
  from torchmetrics.audio import SourceAggregatedSignalDistortionRatio
  from torchmetrics.functional.audio import scale_invariant_signal_distortion_ratio, signal_noise_ratio, source_aggregated_signal_distortion_ratio
  from unittests import BATCH_SIZE, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestSASDR obj's underlying member method code with example usage: obj.test_si_sdr(preds, target, scale_invariant, zero_mean, ddp) without return types