code: def test_weighted_mean_two_points(self, atol):
      X = self.data_generator.random_point(n_points=2)
      weights = gs.random.rand(2)
  
      mean = self.estimator.fit(X, weights=weights).estimate_
  
      space = self.estimator.space
      expected = space.metric.exp(
          weights[1] / gs.sum(weights) * space.metric.log(X[1], X[0]),
          X[0],
      )
      self.assertAllClose(mean, expected, atol=atol)
  
imports: import pytest
  import geomstats.backend
  from geomstats.geometry.discrete_curves import SRVTranslationMetric
  from geomstats.learning.frechet_mean import GradientDescent, variance
  from geomstats.test.random import RandomDataGenerator
  from geomstats.test.test_case import TestCase
  from geomstats.test_cases.learning._base import BaseEstimatorTestCase, MeanEstimatorMixinsTestCase
  from geomstats.vectorization import repeat_point
label_desc: Use image node_id 2 for calling the FrechetMeanTestCase obj's underlying member method code with example usage: obj.test_weighted_mean_two_points(atol) without return types