code: def test_gaussian_filter2d(shape, padding, dtype):
      modes = {
          "SYMMETRIC": "reflect",
          "CONSTANT": "constant",
          "REFLECT": "mirror",
      }
  
      image = np.arange(np.prod(shape)).reshape(*shape).astype(dtype)
  
      ndims = len(shape)
      sigma = [1.0, 1.0]
      if ndims == 3:
          sigma = [1.0, 1.0, 0.0]
      elif ndims == 4:
          sigma = [0.0, 1.0, 1.0, 0.0]
  
      test_utils.assert_allclose_according_to_type(
          gaussian_filter2d(image, 9, 1, padding=padding).numpy(),
          gaussian_filter(image, sigma, mode=modes[padding]),
      )
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.image import mean_filter2d
  from tensorflow_addons.image import median_filter2d
  from tensorflow_addons.image import gaussian_filter2d
  from tensorflow_addons.utils import test_utils
  from scipy.ndimage.filters import gaussian_filter
label_desc: Use image node_id 22 for calling a global function with example usage: test_gaussian_filter2d(shape, padding, dtype) without return types