code: def test_generate_fig_univariate_categorical_1(self):
      df = pd.DataFrame(
          {
              "int_data": [0, 0, 0, 1, 1, 0],
              "data_train_test": [
                  "train",
                  "train",
                  "train",
                  "train",
                  "test",
                  "test",
              ],
          }
      )
  
      fig = generate_fig_univariate_categorical(
          df, "int_data", "data_train_test"
      )
  
      assert len(fig.axes[0].patches) == 4
  
file_path: shapash/tests/unit_tests/report/test_plots.py
imports: import unittest
  from unittest.mock import patch
  import pandas
  import numpy
  import matplotlib.pyplot
  from shapash.report.plots import generate_fig_univariate, generate_fig_univariate_continuous, generate_fig_univariate_categorical
  from shapash.report.common import VarType
label_desc: Use image node_id 5 for calling the TestPlots obj's underlying member method code with example usage: obj.test_generate_fig_univariate_categorical_1() without return types