code: def diagonal_spaces(request):
      space = request.cls.space = NormalDistributions(
          sample_dim=request.param,
          distribution_type="diagonal",
          equip=False,
      )
      request.cls.random_variable = (
          DiagonalNormalDistributionsRandomVariable(space)
      )
  
imports: import random
  import pytest
  from geomstats.geometry.poincare_half_space import PoincareHalfSpace
  from geomstats.information_geometry.normal import DiagonalNormalDistributionsRandomVariable, MultivariateNormalDistributionsRandomVariable, NormalDistributions, SharedMeanNormalDistributionsRandomVariable, UnivariateNormalDistributionsRandomVariable, UnivariateNormalToPoincareHalfSpaceDiffeo
  from geomstats.test.parametrizers import DataBasedParametrizer
  from geomstats.test.random import RandomDataGenerator
  from geomstats.test_cases.geometry.base import VectorSpaceOpenSetTestCase
  from geomstats.test_cases.geometry.diffeo import DiffeoTestCase
  from geomstats.test_cases.geometry.poincare_half_space import PoincareHalfSpaceTestCase
  from geomstats.test_cases.geometry.product_manifold import ProductManifoldTestCase
  from geomstats.test_cases.geometry.riemannian_metric import RiemannianMetricTestCase
  from geomstats.test_cases.geometry.spd_matrices import SPDMatricesTestCase
  from geomstats.test_cases.information_geometry.base import InformationManifoldMixinTestCase
  from geomstats.test_cases.information_geometry.normal import UnivariateNormalMetricTestCase
  from ..test_geometry.data.diffeo import DiffeoTestData
  from ..test_geometry.data.spd_matrices import SPDAffineMetricTestData
  from .data.normal import CenteredNormalDistributionsTestData, DiagonalNormalDistributionsTestData, DiagonalNormalMetricTestData, GeneralNormalDistributionsTestData, GeneralNormalMetricTestData, UnivariateNormalDistributionsTestData, UnivariateNormalMetricTestData
label_desc: Use image node_id 3 for calling a global function with example usage: diagonal_spaces(request) without return types