code: def test_partly_categorical_space():
      dims = Space(
          [Categorical(["a", "b", "c"]), Categorical(["A", "B", "C"])]
      )
      assert dims.is_partly_categorical
      dims = Space([Categorical(["a", "b", "c"]), Integer(1, 2)])
      assert dims.is_partly_categorical
      assert not dims.is_categorical
      dims = Space([Integer(1, 2), Integer(1, 2)])
      assert not dims.is_partly_categorical
  
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 40 for calling a global function with example usage: test_partly_categorical_space() without return types