code: def test_dist_output_shape(self, dist_fnc, point_a, point_b):
      results = dist_fnc(point_a, point_b)
  
      n_dist = max(
          point_a.shape[0] if gs.ndim(point_a) > 2 else 1,
          point_b.shape[0] if gs.ndim(point_b) > 2 else 1,
      )
      self.assertTrue(results.size == n_dist)
  
imports: import networkx
  import pytest
  import geomstats.backend
  from geomstats.test.parametrizers import DataBasedParametrizer
  from geomstats.test.test_case import TestCase
  from geomstats.test_cases.geometry.stratified.point_set import PointSetMetricTestCase, PointSetTestCase, PointTestCase
  from .data.graph_space import AlignerTestData, DecoratorsTestData, GraphSpaceMetricTestData, GraphSpaceTestData, GraphTestData, PointToGeodesicAlignerTestData
label_desc: Use image node_id 1 for calling the TestGraphSpaceMetric obj's underlying member method code with example usage: obj.test_dist_output_shape(dist_fnc, point_a, point_b) without return types