code: def test_sample_noise_manifest(
      self, sampler, num_noise_files, test_data_dir
  ):
      sampler.num_noise_files = num_noise_files
      manifest_path = os.path.abspath(
          os.path.join(test_data_dir, "asr/an4_val.json")
      )
      noise_manifest = read_noise_manifest(
          add_bg=True, background_manifest=manifest_path
      )
      sampled_noise_manifests = sampler.sample_noise_manifest(
          noise_manifest=noise_manifest
      )
      assert len(sampled_noise_manifests) == num_noise_files
  
imports: import os
  import numpy
  import pytest
  import torch
  from omegaconf import DictConfig
  from nemo.collections.asr.parts.utils.data_simulation_utils import DataAnnotator, SpeechSampler, add_silence_to_alignments, binary_search_alignments, get_cleaned_base_path, get_split_points_in_alignments, normalize_audio, read_noise_manifest
  from nemo.collections.asr.parts.utils.manifest_utils import get_ctm_line
label_desc: Use image node_id 10 for calling the TestSpeechSampler obj's underlying member method code with example usage: obj.test_sample_noise_manifest(sampler, num_noise_files, test_data_dir) without return types