code: def test_keep_size(self):
      for p in TEST_NDARRAYS_ALL:
          zoom_fn = Zoom(
              zoom=[0.6, 0.6], keep_size=True, align_corners=True
          )
          im = p(self.imt[0])
          zoomed = zoom_fn(im, mode="bilinear")
          assert_allclose(
              zoomed.shape, self.imt.shape[1:], type_test=False
          )
          test_local_inversion(zoom_fn, zoomed, im)
  
          zoom_fn = Zoom(zoom=[1.3, 1.3], keep_size=True)
          im = p(self.imt[0])
          zoomed = zoom_fn(im)
          assert_allclose(
              zoomed.shape, self.imt.shape[1:], type_test=False
          )
          test_local_inversion(zoom_fn, zoomed, p(self.imt[0]))
  
          set_track_meta(False)
          rotated = zoom_fn(im)
          self.assertNotIsInstance(rotated, MetaTensor)
          np.testing.assert_allclose(zoomed.shape, self.imt.shape[1:])
          set_track_meta(True)
  
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 3 for calling the TestZoom obj's underlying member method code with example usage: obj.test_keep_size() without return types