code: def test_purely_categorical_space():
      # TODO: Refactor - Use PyTest
      # Test reproduces the bug in #908, make sure it doesn't come back
      dims = [
          Categorical(["a", "b", "c"]),
          Categorical(["A", "B", "C"]),
      ]
      optimizer = Optimizer(dims, n_initial_points=1, random_state=3)
  
      x = optimizer.ask()
      # Before the fix this call raised an exception
      optimizer.tell(x, 1.0)
  
imports: from hyperparameter_hunter.optimization.backends.skopt.engine import Optimizer
  from hyperparameter_hunter.space.dimensions import Real, Integer, Categorical
  from hyperparameter_hunter.space.space_core import Space, check_dimension, normalize_dimensions
  import numbers
  import numpy
  import pytest
  from sklearn.utils.testing import assert_array_almost_equal, assert_array_equal, assert_equal
label_desc: Use image node_id 27 for calling a global function with example usage: test_purely_categorical_space() without return types