code: def test_scalar_metric_multiplication(self, scale):
      scaled_metric_1 = scale * self.space.metric
      scaled_metric_2 = self.space.metric * scale
  
      point_a, point_b = self.space.random_point(2)
      dist = self.space.metric.squared_dist(point_a, point_b)
      dist_1 = scaled_metric_1.squared_dist(point_a, point_b)
      dist_2 = scaled_metric_2.squared_dist(point_a, point_b)
  
      self.assertAllClose(scale * dist, dist_1)
      self.assertAllClose(scale * dist, dist_2)
  
file_path: geomstats/geomstats/test_cases/geometry/scalar_product_metric.py
imports: from geomstats.geometry.scalar_product_metric import ScalarProductMetric, _get_scaling_factor, _wrap_attr
  from geomstats.test.test_case import TestCase
label_desc: Use image node_id 1 for calling the InstantiationTestCase obj's underlying member method code with example usage: obj.test_scalar_metric_multiplication(scale) without return types