code: def test_identical_spatial(self):
      test_input = {"X": np.ones((1, 10, 16, 17))}
      xform = Resized("X", (-1, 16, 17))
      out = xform(test_input)
      out["Y"] = 2 * out["X"]
      transform_inverse = Invertd(
          keys="Y", transform=xform, orig_keys="X"
      )
      assert_allclose(
          transform_inverse(out)["Y"].array,
          np.ones((1, 10, 16, 17)) * 2,
      )
  
file_path: MONAI/tests/test_resized.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import skimage.transform
  import torch
  from parameterized import parameterized
  from monai.data import MetaTensor, set_track_meta
  from monai.transforms import Invertd, Resize, Resized
  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 5 for calling the TestResized obj's underlying member method code with example usage: obj.test_identical_spatial() without return types