code: def test_get_cleaned_base_path(self, output_dir):
      result_path = get_cleaned_base_path(
          output_dir, overwrite_output=True
      )
      assert os.path.exists(result_path) and not os.path.isfile(
          result_path
      )
      result_path = get_cleaned_base_path(
          output_dir, overwrite_output=False
      )
      assert os.path.exists(result_path) and not os.path.isfile(
          result_path
      )
      os.rmdir(result_path)
      assert not os.path.exists(result_path)
  
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 3 for calling the TestDataSimulatorUtils obj's underlying member method code with example usage: obj.test_get_cleaned_base_path(output_dir) without return types