code: def test_generate_fig_univariate_1(
      self, mock_plot_cat, mock_plot_cont
  ):
      df = pd.DataFrame(
          {
              "string_data": ["a", "b", "c", "d", "e", np.nan],
              "data_train_test": [
                  "train",
                  "train",
                  "train",
                  "train",
                  "test",
                  "test",
              ],
          }
      )
  
      generate_fig_univariate(
          df, "string_data", "data_train_test", type=VarType.TYPE_CAT
      )
      mock_plot_cat.assert_called_once()
      self.assertEqual(mock_plot_cont.call_count, 0)
  
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 1 for calling the TestPlots obj's underlying member method code with example usage: obj.test_generate_fig_univariate_1(mock_plot_cat, mock_plot_cont) without return types