class_docstr: Test class for `ShortTimeObjectiveIntelligibility` metric.
docstr: Test dtype support of the metric on CPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","CPU","."]
code: def test_stoi_half_cpu(self, preds, target, ref_metric, fs, extended):
      """Test dtype support of the metric on CPU."""
      pytest.xfail("STOI metric does not support cpu + half precision")
  
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 4 for calling the TestSTOI obj's underlying member method code with example usage: obj.test_stoi_half_cpu(preds, target, ref_metric, fs, extended) without return types