code: def spaces(request):
      n_samples = request.param
      domain = gs.linspace(0, 1, num=n_samples)
      request.cls.space = HilbertSphere(domain, equip=True)
  
file_path: geomstats/tests/tests_geomstats/test_geometry/test_functions.py
imports: import random
  import pytest
  import geomstats.backend
  from geomstats.geometry.functions import HilbertSphere
  from geomstats.test.parametrizers import DataBasedParametrizer
  from geomstats.test_cases.geometry.manifold import ManifoldTestCase
  from geomstats.test_cases.geometry.mixins import ProjectionTestCaseMixins
  from geomstats.test_cases.geometry.riemannian_metric import RiemannianMetricTestCase
  from .data.functions import HilbertSphereMetricTestData, HilbertSphereSmokeTestData, HilbertSphereTestData
label_desc: Use image node_id 1 for calling a global function with example usage: spaces(request) without return types