code: def test_compute_pitch(self):
      pitch_featurizer = PitchFeaturizer(
          hop_length=self.hop_len, sample_rate=self.sample_rate
      )
  
      with self._create_test_dir() as test_dir:
          pitch, voiced, voiced_prob = pitch_featurizer.compute_pitch(
              manifest_entry=self.manifest_entry, audio_dir=test_dir
          )
  
      assert len(pitch.shape) == 1
      assert pitch.shape[0] == self.spec_len
      assert pitch.dtype == np.float32
  
      assert len(voiced.shape) == 1
      assert voiced.shape[0] == self.spec_len
      assert voiced.dtype == bool
  
      assert len(voiced_prob.shape) == 1
      assert voiced_prob.shape[0] == self.spec_len
      assert voiced_prob.dtype == np.float32
  
imports: import contextlib
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  import soundfile
  import torch
  from nemo.collections.tts.parts.preprocessing.features import EnergyFeaturizer, MelSpectrogramFeaturizer, PitchFeaturizer
label_desc: Use image node_id 6 for calling the TestTTSFeatures obj's underlying member method code with example usage: obj.test_compute_pitch() without return types