code: def test_correct_results(
      self, zoom, mode, keep_size, align_corners=None
  ):
      key = "img"
      init_param = {
          "keys": key,
          "zoom": zoom,
          "mode": mode,
          "keep_size": keep_size,
          "dtype": torch.float64,
          "align_corners": align_corners,
      }
      zoom_fn = Zoomd(**init_param)
      for p in TEST_NDARRAYS_ALL:
          im = p(self.imt[0])
          call_param = {"data": {key: im}}
          zoomed = zoom_fn(**call_param)
  
          # test lazy
          # TODO: temporarily skip "nearest" test
          if mode == "bilinear":
              test_resampler_lazy(
                  zoom_fn,
                  zoomed,
                  init_param,
                  call_param,
                  output_key=key,
                  atol=1e-4 if USE_COMPILED else 1e-6,
              )
              zoom_fn.lazy = False
  
          test_local_inversion(zoom_fn, zoomed, {key: im}, key)
          _order = 0
          if mode.endswith("linear"):
              _order = 1
          expected = [
              zoom_scipy(
                  channel,
                  zoom=zoom,
                  mode="nearest",
                  order=_order,
                  prefilter=False,
              )
              for channel in self.imt[0]
          ]
  
          expected = np.stack(expected).astype(np.float32)
          assert_allclose(
              zoomed[key], p(expected), atol=1.0, type_test=False
          )
  
file_path: MONAI/tests/test_zoomd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from scipy.ndimage import zoom
  from monai.config import USE_COMPILED
  from monai.transforms import Zoomd
  from tests.lazy_transforms_utils import test_resampler_lazy
  from tests.utils import TEST_NDARRAYS_ALL, NumpyImageTestCase2D, assert_allclose, test_local_inversion
label_desc: Use image node_id 1 for calling the TestZoomd obj's underlying member method code with example usage: obj.test_correct_results(zoom, mode, keep_size, align_corners) without return types