code: def test_padding_mode(self):
      for p in TEST_NDARRAYS_ALL:
          zoom_fn = Zoom(
              zoom=0.5,
              mode="nearest",
              padding_mode="constant",
              keep_size=True,
          )
          test_data = p(
              [
                  [
                      [1.0, 1.0, 1.0, 1.0],
                      [1.0, 1.0, 1.0, 1.0],
                      [1.0, 1.0, 1.0, 1.0],
                      [1.0, 1.0, 1.0, 1.0],
                  ]
              ]
          )
          zoomed = zoom_fn(test_data)
          expected = p(
              [
                  [
                      [0.0, 0.0, 0.0, 0.0],
                      [0.0, 1.0, 1.0, 0.0],
                      [0.0, 1.0, 1.0, 0.0],
                      [0.0, 0.0, 0.0, 0.0],
                  ]
              ]
          )
          assert_allclose(zoomed, expected, 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 5 for calling the TestZoom obj's underlying member method code with example usage: obj.test_padding_mode() without return types