code: def test_create_categorical_plot():
      """unit test"""
      values = [
          int(i) for i in np.random.randint(low=0, high=10, size=100)
      ]
      fig = create_categorical_plot(values)
      plt.close(fig)
  
      values = [
          (v, 10) for v in np.random.randint(low=0, high=10, size=100)
      ]
      fig = create_categorical_plot(values)
      plt.close(fig)
  
      with raises(NotImplementedError):
          values = np.random.random(100)
          create_categorical_plot(values)
  
file_path: maze/maze/test/core/log_events/test_log_create_figure_functions.py
imports: import numpy
  import matplotlib.pyplot
  from pytest import raises
  from maze.core.log_events.log_create_figure_functions import create_histogram, create_categorical_plot, create_violin_distribution, create_binary_plot
label_desc: Use image node_id 2 for calling a global function with example usage: test_create_categorical_plot() without return types