code: def test_fit_warn(self, estimator, X, y=None):
      max_iter = estimator.max_iter
      estimator.max_iter = 1
  
      estimator.fit(X, y=y)
      estimator.max_iter = max_iter
      self.assertEqual(estimator.n_iter_, 1)
  
imports: import geomstats.backend
  from geomstats.learning.aac import AAC
  from geomstats.test.parametrizers import Parametrizer
  from geomstats.test.test_case import TestCase
  from .data.aac import AACFrechetMeanTestData, AACGGPCATestData, AACRegressionTestData, AACTestData
label_desc: Use image node_id 1 for calling the _TestEstimator obj's underlying member method code with example usage: obj.test_fit_warn(estimator, X, y) without return types