code: def test_saved_content_with_filename(
      self, test_data, output_ext, resample
  ):
      with tempfile.TemporaryDirectory() as tempdir:
          trans = SaveImage(
              output_dir=tempdir,
              output_ext=output_ext,
              resample=resample,
              separate_folder=False,  # test saving into the same folder
          )
          filename = str(os.path.join(tempdir, "test"))
          trans(test_data, filename=filename)
  
          self.assertTrue(os.path.exists(filename + output_ext))
  
file_path: MONAI/tests/test_save_image.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  import torch
  from parameterized import parameterized
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms import SaveImage
  from monai.utils import optional_import
label_desc: Use image node_id 2 for calling the TestSaveImage obj's underlying member method code with example usage: obj.test_saved_content_with_filename(test_data, output_ext, resample) without return types