code: def test_has_categorical_labels():
      param = HasCategoricalLabels()
      assert param.get_categorical_labels()
      has_labels = False
      param.set_categorical_labels(has_labels)
      assert param.get_categorical_labels() == has_labels
  
file_path: elephas/tests/ml/test_params.py
imports: from elephas.ml.params import *
label_desc: Use image node_id 6 for calling a global function with example usage: test_has_categorical_labels() without return types