code: def test_variance(
      self, points, base_point, expected, atol, weights=None
  ):
      res = variance(self.space, points, base_point, weights=weights)
      self.assertAllClose(res, 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 VarianceTestCase obj's underlying member method code with example usage: obj.test_variance(points, base_point, expected, atol, weights) without return types