code: def _warn_max_iterations(iteration, max_iter):
      if iteration == max_iter:
          logging.warning(
              f"Maximum number of iterations {max_iter} reached. "
              "The estimate may be inaccurate"
          )
  
imports: import logging
  import random
  from sklearn.base import BaseEstimator
  import geomstats.backend
  from geomstats.errors import check_parameter_accepted_values
  from geomstats.learning._sklearn_wrapper import WrappedLinearRegression, WrappedPCA
  from geomstats.learning.frechet_mean import FrechetMean
label_desc: Use image node_id 1 for calling a global function with example usage: _warn_max_iterations(iteration, max_iter) without return types