code: def test_make_grid(hspace):
      """Test that different dimension types are supported"""
      flattened_space = flatten_space(hspace)
      assert list(make_grid(flattened_space["x"], 7)) == [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
      ]
      numpy.testing.assert_almost_equal(
          make_grid(flattened_space["y[0]"], 4), [1, 2, 3, 4], decimal=4
      )
      numpy.testing.assert_almost_equal(
          make_grid(flattened_space["y[2]"], 4), [1, 2, 3, 4], decimal=4
      )
      assert list(make_grid(flattened_space["z"], 10)) == [0, 1, 2]
  
imports: import copy
  import numpy
  import pandas
  import pytest
  from orion.analysis.partial_dependency_utils import make_grid, partial_dependency, partial_dependency_grid, reverse
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils import format_trials
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 8 for calling a global function with example usage: test_make_grid(hspace) without return types