code: def test_search_space_transform_values_categorical(
      param: Any, distribution: CategoricalDistribution
  ) -> None:
      trans = _SearchSpaceTransform({"x0": distribution})
  
      for bound in trans.bounds:
          assert bound[0] == 0.0
          assert bound[1] == 1.0
  
      trans_params = trans.transform({"x0": param})
  
      for trans_param in trans_params:
          assert trans_param in (0.0, 1.0)
  
file_path: optuna/tests/test_transform.py
imports: import math
  from typing import Any
  import numpy
  import pytest
  from optuna._transform import _SearchSpaceTransform
  from optuna._transform import _untransform_numerical_param
  from optuna.distributions import BaseDistribution
  from optuna.distributions import CategoricalDistribution
  from optuna.distributions import FloatDistribution
  from optuna.distributions import IntDistribution
label_desc: Use image node_id 4 for calling a global function with example usage: test_search_space_transform_values_categorical(param, distribution) without return types