code: def test_no_randomize(self, initial_randomize, cache_grid):
      rand_affine = RandAffine(
          prob=1,
          rotate_range=(np.pi / 6, 0, 0),
          translate_range=((-2, 2), (-2, 2), (-2, 2)),
          scale_range=((-0.1, 0.1), (-0.1, 0.1), (-0.1, 0.1)),
          spatial_size=(16, 16, 16),
          cache_grid=cache_grid,
          padding_mode="zeros",
      )
      if initial_randomize:
          rand_affine.randomize(None)
  
      arr = torch.randn((1, 16, 16, 16)) * 100
  
      arr1 = rand_affine(arr, randomize=False)
      m1 = rand_affine.rand_affine_grid.get_transformation_matrix()
  
      arr2 = rand_affine(arr, randomize=False)
      m2 = rand_affine.rand_affine_grid.get_transformation_matrix()
  
      assert_allclose(m1, m2)
      assert_allclose(arr1, arr2)
  
file_path: MONAI/tests/test_rand_affine.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.transforms import RandAffine
  from monai.utils.type_conversion import convert_data_type
  from tests.lazy_transforms_utils import test_resampler_lazy
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose, is_tf32_env
label_desc: Use image node_id 4 for calling the TestRandAffine obj's underlying member method code with example usage: obj.test_no_randomize(initial_randomize, cache_grid) without return types