code: def test_rand_grid_distortion(
      self, input_param, seed, input_data, expected_val
  ):
      g = RandGridDistortion(**input_param)
      g.set_random_state(seed=seed)
      result = g(input_data)
      if input_param["padding_mode"] != "reflection":
          assert_allclose(
              result,
              expected_val,
              type_test="tensor",
              rtol=1e-4,
              atol=1e-4,
          )
      else:
          assert_allclose(
              result.shape,
              expected_val.shape,
              type_test=False,
              rtol=1e-4,
              atol=1e-4,
          )
  
file_path: MONAI/tests/test_rand_grid_distortion.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import RandGridDistortion
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandGridDistortion obj's underlying member method code with example usage: obj.test_rand_grid_distortion(input_param, seed, input_data, expected_val) without return types