code: def test_grid_distortion(self, input_param, input_data, expected_val):
      g = GridDistortion(**input_param)
      result = g(input_data)
      if input_param["padding_mode"] != "reflection":
          assert_allclose(
              result,
              expected_val,
              type_test=False,
              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_grid_distortion.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import GridDistortion
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose
label_desc: Use image node_id 1 for calling the TestGridDistortion obj's underlying member method code with example usage: obj.test_grid_distortion(input_param, input_data, expected_val) without return types