code: def test_on_real_audio():
      """Test that metric works as expected on real audio signals."""
      rate, ref = wavfile.read(_SAMPLE_AUDIO_SPEECH)
      rate, deg = wavfile.read(_SAMPLE_AUDIO_SPEECH_BAB_DB)
      pesq = perceptual_evaluation_speech_quality(
          torch.from_numpy(deg), torch.from_numpy(ref), rate, "wb"
      )
      assert pesq == 1.0832337141036987
      pesq = perceptual_evaluation_speech_quality(
          torch.from_numpy(deg), torch.from_numpy(ref), rate, "nb"
      )
      assert pesq == 1.6072081327438354
  
imports: from functools import partial
  import pytest
  import torch
  from pesq import pesq
  from scipy.io import wavfile
  from torch import Tensor
  from torchmetrics.audio import PerceptualEvaluationSpeechQuality
  from torchmetrics.functional.audio import perceptual_evaluation_speech_quality
  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 a global function with example usage: test_on_real_audio() without return types