code: def test_dist_output_shape(self, dist_fnc, point_a, point_b):
      results = dist_fnc(point_a, point_b)
  
      is_array = type(point_a) is list or type(point_b) is list
      if is_array:
          n_dist = max(
              len(point_a) if type(point_a) is list else 1,
              len(point_b) if type(point_b) is list else 1,
          )
          self.assertTrue(results.size == n_dist)
      else:
          self.assertTrue(not isinstance(results, Iterable))
  
imports: from collections.abc import Iterable
  import geomstats.backend
  from geomstats.test.test_case import TestCase
label_desc: Use image node_id 3 for calling the PointSetMetricTestCase obj's underlying member method code with example usage: obj.test_dist_output_shape(dist_fnc, point_a, point_b) without return types