code: def test_mocked(self):
      class _DummyDestination(debuglib._IImageDestination):
          def __init__(self):
              self.received = []
  
          def receive(self, image):
              self.received.append(np.copy(image))
  
      image = iarandom.RNG(0).integers(
          0, 256, size=(256, 256, 3), dtype=np.uint8
      )
      destination = _DummyDestination()
      aug = iaa.SaveDebugImageEveryNBatches(destination, 10)
  
      for _ in np.arange(20):
          _ = aug(image=image)
  
      expected = iaa.draw_debug_image([image])
      assert len(destination.received) == 2
      assert np.array_equal(destination.received[0], expected)
      assert np.array_equal(destination.received[1], 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 2 for calling the SaveDebugImageEveryNBatches obj's underlying member method code with example usage: obj.test_mocked() without return types