code: def test_purely_categorical_space():
      # 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=2, random_state=3)
  
      for _ in range(2):
          x = optimizer.ask()
          # before the fix this call raised an exception
          optimizer.tell(x, np.random.uniform())
  
imports: import pytest
  import numbers
  import numpy
  import os
  import yaml
  from tempfile import NamedTemporaryFile
  from numpy.testing import assert_array_almost_equal
  from numpy.testing import assert_array_equal
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises_regex
  from skopt import Optimizer
  from skopt.space import Space
  from skopt.space import Real
  from skopt.space import Integer
  from skopt.space import Categorical
  from skopt.space import check_dimension
  from skopt.utils import normalize_dimensions
label_desc: Use image node_id 39 for calling a global function with example usage: test_purely_categorical_space() without return types