code: def test_too_small_distrete_grid():
      """Test that small discrete grid does not lead to duplicates"""
      dim = Integer("yolo", "uniform", -2, 4)
      assert discrete_grid(dim, 3) == [-2, 0, 2]
      assert discrete_grid(dim, 5) == [-2, -1, 0, 1, 2]
      assert discrete_grid(dim, 50) == [-2, -1, 0, 1, 2]
  
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 5 for calling a global function with example usage: test_too_small_distrete_grid() without return types