code: def test_discrete_grid():
      """Test discrete grid"""
      dim = Integer("yolo", "uniform", -5, 10)
      assert discrete_grid(dim, 6) == [-5, -3, -1, 1, 3, 5]
      assert discrete_grid(dim, 7) == [-5, -3, -2, 0, 2, 3, 5]
  
imports: from __future__ import annotations
  import logging
  import numpy.testing
  import pytest
  from orion.algo.gridsearch import GridSearch, categorical_grid, discrete_grid, grid, real_grid
  from orion.algo.space import Categorical, Integer, Real, Space
  from orion.testing.algo import BaseAlgoTests
label_desc: Use image node_id 4 for calling a global function with example usage: test_discrete_grid() without return types