code: def test_correct_results(
      self,
      im_type,
      x,
      y,
      z,
      keep_size,
      mode,
      padding_mode,
      align_corners,
      expected,
  ):
      init_param = {
          "range_x": x,
          "range_y": y,
          "range_z": z,
          "prob": 1.0,
          "keep_size": keep_size,
          "mode": mode,
          "padding_mode": padding_mode,
          "align_corners": align_corners,
          "dtype": np.float64,
      }
      rotate_fn = RandRotate(**init_param)
      rotate_fn.set_random_state(243)
      im = im_type(self.imt[0])
      call_param = {"img": im}
      rotated = rotate_fn(**call_param)
  
      # test lazy
      test_resampler_lazy(
          rotate_fn,
          rotated,
          init_param=init_param,
          call_param=call_param,
          seed=243,
      )
      rotate_fn.lazy = False
  
      assert_allclose(rotated.shape, expected, rtol=1e-7, atol=0)
      test_local_inversion(rotate_fn, rotated, im)
  
      set_track_meta(False)
      rotated = rotate_fn(im)
      self.assertNotIsInstance(rotated, MetaTensor)
      self.assertIsInstance(rotated, torch.Tensor)
      set_track_meta(True)
  
file_path: MONAI/tests/test_rand_rotate.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import scipy.ndimage
  import torch
  from parameterized import parameterized
  from monai.config import USE_COMPILED
  from monai.data import MetaTensor, set_track_meta
  from monai.transforms import RandRotate
  from tests.lazy_transforms_utils import test_resampler_lazy
  from tests.utils import TEST_NDARRAYS_ALL, NumpyImageTestCase2D, NumpyImageTestCase3D, assert_allclose, test_local_inversion
label_desc: Use image node_id 1 for calling the TestRandRotate3D obj's underlying member method code with example usage: obj.test_correct_results(im_type, x, y, z, keep_size, mode, padding_mode, align_corners, expected) without return types