code: def _get_params():
      params = []
      spaces = (
          Hypersphere(dim=random.randint(3, 4)),
          SPDMatrices(n=random.randint(2, 4)),
      )
  
      init = ["kmeans++", "random"]
      for space in spaces:
          n_clusters = random.randint(2, 4)
          for init_ in init:
              params.append((space, n_clusters, init_))
  
      params.append(
          (
              spaces[0],
              params[0][1],
              lambda X, n_clusters: _make_centroids(
                  spaces[0], X, n_clusters
              ),
          )
      )
  
      return params
  
imports: import random
  import pytest
  from geomstats.geometry.hypersphere import Hypersphere
  from geomstats.geometry.spd_matrices import SPDMatrices
  from geomstats.learning.frechet_mean import FrechetMean
  from geomstats.learning.kmeans import RiemannianKMeans
  from geomstats.test.parametrizers import DataBasedParametrizer
  from geomstats.test_cases.learning._base import BaseEstimatorTestCase, ClusterMixinsTestCase
  from geomstats.test_cases.learning.kmeans import AgainstFrechetMeanTestCase, ClusterInitializationTestCase
  from .data.kmeans import AgainstFrechetMeanTestData, ClusterInitializationTestData, RiemannianKMeansTestData
label_desc: Use image node_id 2 for calling a global function with example usage: _get_params() and returns: params