code: def test_invalid_input_img_type():
      """Test Whether the module successfully handles invalid input data type."""
      invalid_dummy_input = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  
      with pytest.raises(TypeError):
          image_gradients(invalid_dummy_input)
  
imports: import pytest
  import torch
  from torch import Tensor
  from torchmetrics.functional import image_gradients
label_desc: Use image node_id 1 for calling a global function with example usage: test_invalid_input_img_type() without return types