code: def test_correct_results(
      self,
      im_type,
      degrees,
      keep_size,
      mode,
      padding_mode,
      align_corners,
  ):
      rotate_fn = RandRotate(
          range_x=1.0,
          prob=0.5,
          keep_size=keep_size,
          mode=mode,
          padding_mode=padding_mode,
          align_corners=align_corners,
          dtype=np.float64,
      )
      im = im_type(self.imt[0])
      rotated = rotate_fn(im)
      self.assertEqual(rotated.dtype, torch.float32)
  
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 TestRandRotateDtype obj's underlying member method code with example usage: obj.test_correct_results(im_type, degrees, keep_size, mode, padding_mode, align_corners) without return types