code: def test_categorical_grid():
      """Test that categorical grid returns all choices"""
      dim = Categorical("yolo", "abcde")
      assert categorical_grid(dim, 5) == dim.categories
  
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 1 for calling a global function with example usage: test_categorical_grid() without return types