code: def test_cat_cols_to_bins_with_max_num_categories_and_sort_by_raises():
      dist1 = np.array(list("aaabbbccd"))
      dist2 = np.array(list("aacdee"))
      assert_that(
          calling(preprocess_2_cat_cols_to_same_bins).with_args(
              dist1=dist1,
              dist2=dist2,
              max_num_categories=3,
              sort_by="bla",
          ),
          raises(
              DeepchecksValueError,
              r"sort_by got unexpected value\: bla",
          ),
      )
  
file_path: deepchecks/tests/utils/preprocessing_test.py
imports: import numpy
  from hamcrest import assert_that, calling, equal_to, raises
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.distribution.preprocessing import OTHER_CATEGORY_NAME, preprocess_2_cat_cols_to_same_bins, value_frequency
label_desc: Use image node_id 4 for calling a global function with example usage: test_cat_cols_to_bins_with_max_num_categories_and_sort_by_raises() without return types