code: def test_correct_results(self, zoom, mode, *_):
      for p in TEST_NDARRAYS_ALL:
          zoom_fn = Zoom(zoom=zoom, mode=mode, keep_size=False)
          im = p(self.imt[0])
          zoomed = zoom_fn(im)
          test_local_inversion(zoom_fn, zoomed, im)
          _order = 0
          if mode == 1 or mode.endswith("linear"):
              _order = 1
          expected = []
          for channel in self.imt[0]:
              expected.append(
                  zoom_scipy(
                      channel,
                      zoom=zoom,
                      mode="nearest",
                      order=_order,
                      prefilter=False,
                  )
              )
          expected = np.stack(expected).astype(np.float32)
          assert_allclose(
              zoomed, p(expected), atol=1.0, type_test=False
          )
  
file_path: MONAI/tests/test_zoom.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from scipy.ndimage import zoom
  from monai.data import MetaTensor, set_track_meta
  from monai.transforms import Zoom
  from monai.transforms.lazy.functional import apply_pending
  from tests.utils import DEFAULT_TEST_AFFINE, TEST_NDARRAYS_ALL, NumpyImageTestCase2D, assert_allclose, test_local_inversion
label_desc: Use image node_id 2 for calling the TestZoom obj's underlying member method code with example usage: obj.test_correct_results(zoom, mode) without return types