code: def test_categorical_repr():
      small_cat = Categorical([1, 2, 3, 4, 5])
      assert (
          small_cat.__repr__()
          == "Categorical(categories=(1, 2, 3, 4, 5), prior=None)"
      )
  
      big_cat = Categorical([1, 2, 3, 4, 5, 6, 7, 8])
      assert (
          big_cat.__repr__()
          == "Categorical(categories=(1, 2, 3, ..., 6, 7, 8), prior=None)"
      )
  
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 11 for calling a global function with example usage: test_categorical_repr() without return types