code: def test_dynamo(self, dtype, device, torch_optimizer):
      inpt = torch.tensor(
          [[[[0.0, 0.0, 1.0], [0.0, 0.0, 0.0]]]],
          device=device,
          dtype=dtype,
      )
      op = kornia.geometry.subpix.spatial_expectation2d
      op_optimized = torch_optimizer(op)
  
      assert_close(op(inpt, True), op_optimized(inpt, True))
  
file_path: kornia/test/geometry/subpix/test_dsnt.py
imports: import pytest
  import torch
  import kornia
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling the TestSpatialExpectation2d obj's underlying member method code with example usage: obj.test_dynamo(dtype, device, torch_optimizer) without return types