code: def extrinsic_spaces(request):
      dim = request.param
      request.cls.space = Hypersphere(
          dim, default_coords_type="extrinsic", equip=True
      )
  
imports: import random
  import pytest
  import geomstats.backend
  from geomstats.geometry.hypersphere import Hypersphere, HypersphereMetric
  from geomstats.test.parametrizers import DataBasedParametrizer
  from geomstats.test.random import HypersphereIntrinsicRandomDataGenerator
  from geomstats.test_cases.geometry.hypersphere import HypersphereCoordsTransformTestCase, HypersphereExtrinsicTestCase, HypersphereIntrinsicTestCase
  from geomstats.test_cases.geometry.riemannian_metric import RiemannianMetricTestCase
  from .data.hypersphere import Hypersphere2ExtrinsicMetricTestData, Hypersphere2IntrinsicMetricTestData, Hypersphere4ExtrinsicMetricTestData, HypersphereCoordsTransformTestData, HypersphereExtrinsicMetricTestData, HypersphereExtrinsicTestData, HypersphereIntrinsicTestData
label_desc: Use image node_id 2 for calling a global function with example usage: extrinsic_spaces(request) without return types