code: def _write_test_dict(self, test_dict, filename):
      temp_dir = tempfile.TemporaryDirectory()
      try:
          test_dir = Path(temp_dir.name)
          test_dict_filepath = test_dir / filename
          with open(
              test_dict_filepath, "w", encoding="utf-8"
          ) as stats_f:
              json.dump(test_dict, stats_f, indent=4)
  
          yield test_dict_filepath
      finally:
          temp_dir.cleanup()
  
file_path: NeMo/tests/collections/tts/parts/preprocessing/test_feature_processors.py
imports: import contextlib
  import json
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  import torch
  from nemo.collections.tts.parts.preprocessing.feature_processors import FeatureScaler, LogCompression, MeanVarianceNormalization, MeanVarianceSpeakerNormalization
label_desc: Use image node_id 1 for calling the TestTTSFeatureProcessors obj's underlying member method code with example usage: obj._write_test_dict(test_dict, filename) without return types