class_docstr: Test class for `ShortTimeObjectiveIntelligibility` metric.
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_stoi(self, preds, target, ref_metric, fs, extended, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          ShortTimeObjectiveIntelligibility,
          reference_metric=partial(
              _average_metric, metric_func=ref_metric
          ),
          metric_args={"fs": fs, "extended": extended},
      )
  
imports: from functools import partial
  import pytest
  import torch
  from pystoi import stoi
  from scipy.io import wavfile
  from torch import Tensor
  from torchmetrics.audio import ShortTimeObjectiveIntelligibility
  from torchmetrics.functional.audio import short_time_objective_intelligibility
  from unittests import _Input
  from unittests.audio import _SAMPLE_AUDIO_SPEECH, _SAMPLE_AUDIO_SPEECH_BAB_DB
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestSTOI obj's underlying member method code with example usage: obj.test_stoi(preds, target, ref_metric, fs, extended, ddp) without return types