code: def test_symp_grad(self, test_state, expected):
      result = self.space.metric.symp_grad(
          hamiltonian=self.space.metric.hamiltonian
      )(test_state)
      self.assertAllClose(result, expected)
  
file_path: geomstats/geomstats/test_cases/geometry/sub_riemannian_metric.py
imports: import geomstats.backend
  from geomstats.test.test_case import TestCase
label_desc: Use image node_id 5 for calling the SubRiemannianMetricTestCase obj's underlying member method code with example usage: obj.test_symp_grad(test_state, expected) without return types