code: def test_dynamo(self, mode, order, device, dtype, torch_optimizer):
      inpt = torch.ones(1, 3, 1, 10, 10, device=device, dtype=dtype)
      op = SpatialGradient3d(mode, order)
      op_optimized = torch_optimizer(op)
  
      self.assert_close(op(inpt), op_optimized(inpt))
  
imports: import pytest
  import torch
  from kornia.filters import Sobel, SpatialGradient, SpatialGradient3d, sobel, spatial_gradient, spatial_gradient3d
  from kornia.testing import BaseTester, tensor_to_gradcheck_var
label_desc: Use image node_id 7 for calling the TestSpatialGradient3d obj's underlying member method code with example usage: obj.test_dynamo(mode, order, device, dtype, torch_optimizer) without return types