code: def test_compute_pitch_batched(self, test_data_dir):
      audio_filepath = (
          Path(test_data_dir)
          / "tts"
          / "mini_ljspeech"
          / "wavs"
          / "LJ003-0182.wav"
      )
      manifest_entry = {"audio_filepath": audio_filepath}
  
      # Compute pitch with batching disabled
      pitch_featurizer = PitchFeaturizer(
          hop_length=self.hop_len,
          sample_rate=self.sample_rate,
          batch_seconds=None,
      )
      pitch, voiced, voiced_prob = pitch_featurizer.compute_pitch(
          manifest_entry=manifest_entry, audio_dir=test_data_dir
      )
  
      # Compute pitch in 1 second chunks
      pitch_featurizer_batch = PitchFeaturizer(
          hop_length=self.hop_len,
          sample_rate=self.sample_rate,
          batch_seconds=1.0,
      )
      (
          pitch_batch,
          voiced_batch,
          voiced_prob_batch,
      ) = pitch_featurizer_batch.compute_pitch(
          manifest_entry=manifest_entry, audio_dir=test_data_dir
      )
  
      torch.testing.assert_close(pitch_batch, pitch)
      torch.testing.assert_close(voiced_batch, voiced)
      torch.testing.assert_close(voiced_prob_batch, voiced_prob)
  
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 7 for calling the TestTTSFeatures obj's underlying member method code with example usage: obj.test_compute_pitch_batched(test_data_dir) without return types