code: def setup_method(self):
      if not hasattr(self, "data_generator"):
          self.data_generator = RandomDataGenerator(
              self.estimator.space
          )
  
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 BaseEstimatorTestCase obj's underlying member method code with example usage: obj.setup_method() without return types