class_docstr: Test class for `ShortTimeObjectiveIntelligibility` metric.
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_stoi_functional(
      self, preds, target, ref_metric, fs, extended
  ):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds,
          target,
          short_time_objective_intelligibility,
          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 2 for calling the TestSTOI obj's underlying member method code with example usage: obj.test_stoi_functional(preds, target, ref_metric, fs, extended) without return types