code: def test_fit(self, X, expected, atol, weights=None):
      res = self.estimator.fit(X, weights=weights).estimate_
      self.assertAllClose(res, expected, atol=atol)
  
file_path: geomstats/geomstats/test_cases/learning/_base.py
imports: import pytest
  import geomstats.backend
  from geomstats.test.random import RandomDataGenerator
  from geomstats.test.test_case import TestCase
  from geomstats.vectorization import repeat_point
label_desc: Use image node_id 1 for calling the MeanEstimatorMixinsTestCase obj's underlying member method code with example usage: obj.test_fit(X, expected, atol, weights) without return types