code: def test_temp_directory(self):
      with TemporaryDirectory() as folder_path:
          image = iarandom.RNG(0).integers(
              0, 256, size=(256, 256, 3), dtype=np.uint8
          )
          aug = iaa.SaveDebugImageEveryNBatches(folder_path, 10)
  
          for _ in np.arange(20):
              _ = aug(image=image)
  
          expected = iaa.draw_debug_image([image])
          path1 = os.path.join(folder_path, "batch_000000.png")
          path2 = os.path.join(folder_path, "batch_000010.png")
          path_latest = os.path.join(folder_path, "batch_latest.png")
          assert len(list(os.listdir(folder_path))) == 3
          assert os.path.isfile(path1)
          assert os.path.isfile(path2)
          assert os.path.isfile(path_latest)
          assert np.array_equal(imageio.imread(path1), expected)
          assert np.array_equal(imageio.imread(path2), expected)
          assert np.array_equal(imageio.imread(path_latest), expected)
  
imports: from __future__ import print_function, division, absolute_import
  import sys
  import os
  import numpy
  import cv2
  import imageio
  import imgaug
  from imgaug import augmenters
  from imgaug import random
  from imgaug.testutils import reseed, TemporaryDirectory
  import imgaug.augmenters.debug
label_desc: Use image node_id 3 for calling the SaveDebugImageEveryNBatches obj's underlying member method code with example usage: obj.test_temp_directory() without return types