code: def partial_plots_multinomial():
      iris = h2o.import_file(
          pyunit_utils.locate("smalldata/iris/iris_wheader.csv")
      )
  
      iris["class"] = iris["class"].asfactor()
      iris["random_cat"] = iris["class"]
  
      predictors = iris.col_names[:-1]
      response = "class"
  
      train, valid = iris.split_frame(ratios=[0.8], seed=1234)
  
      model = H2OGeneralizedLinearEstimator(family="multinomial")
      model.train(
          x=predictors,
          y=response,
          training_frame=train,
          validation_frame=valid,
      )
  
      targets = ["Iris-setosa", "Iris-versicolor"]
      cols = ["random_cat"]
  
      with TemporaryDirectory() as tmpdir:
          path1 = "{}/plot1.png".format(tmpdir)
          path2 = "{}/plot2.png".format(tmpdir)
  
          test_plot_result_saving(
              model.plot(),
              path2,
              model.plot(save_plot_path=path1),
              path1,
          )
  
          test_plot_result_saving(
              model.partial_plot(
                  frame=iris,
                  cols=cols,
                  targets=targets,
                  plot_stddev=True,
                  plot=True,
                  server=True,
              ),
              path2,
              model.partial_plot(
                  frame=iris,
                  cols=cols,
                  targets=targets,
                  plot_stddev=True,
                  plot=True,
                  server=True,
                  save_to_file=path1,
              ),
              path1,
          )
  
imports: import sys
  import matplotlib
  from h2o.automl import H2OAutoML
  from h2o.estimators import H2OGradientBoostingEstimator
  from h2o.exceptions import H2OError
  from h2o.transforms import H2OPCA
  import h2o
  from tests import pyunit_utils, test_plot_result_saving, TemporaryDirectory
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator, H2OGeneralizedLinearEstimator
  from h2o.plot import decorate_plot_result, RAISE_ON_FIGURE_ACCESS
label_desc: Use image node_id 6 for calling a global function with example usage: partial_plots_multinomial() without return types