code: def test_sobel_gradients(self, image_dict, arguments, expected_grad):
      sobel = SobelGradientsd(**arguments)
      grad = sobel(image_dict)
      key = (
          "image"
          if "new_key_prefix" not in arguments
          else arguments["new_key_prefix"] + arguments["keys"]
      )
      assert_allclose(grad[key], expected_grad[key])
  
file_path: MONAI/tests/test_sobel_gradientd.py
imports: from __future__ import annotations
  import unittest
  import torch
  from parameterized import parameterized
  from monai.transforms import SobelGradientsd
  from tests.utils import assert_allclose
label_desc: Use image node_id 1 for calling the SobelGradientTests obj's underlying member method code with example usage: obj.test_sobel_gradients(image_dict, arguments, expected_grad) without return types