code: def test_forward(self, example):
      input, expected_norm, expected_px = example
      actual_norm = kornia.geometry.subpix.spatial_expectation2d(
          input, True
      )
      assert_close(actual_norm, expected_norm)
      actual_px = kornia.geometry.subpix.spatial_expectation2d(
          input, False
      )
      assert_close(actual_px, expected_px)
  
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 2 for calling the TestSpatialExpectation2d obj's underlying member method code with example usage: obj.test_forward(example) without return types