code: def automl_pojo():
      ds = import_dataset()
      aml = H2OAutoML(
          max_models=2,
          project_name="py_lb_test_aml1",
          exclude_algos=[
              "XGBoost",
              "StackedEnsemble",
          ],  # no POJO export for XGB or SE
          seed=1234,
      )
      aml.train(y=ds.target, training_frame=ds.train)
  
      # download pojo
      model_zip_path = tempfile.mkdtemp()
      model_zip_file_path = os.path.join(
          model_zip_path, aml._leader_id + ".java"
      )
      time0 = time.time()
      print("\nDownloading POJO @... " + model_zip_file_path)
      pojo_file = aml.download_pojo(model_zip_path)
      print(
          "    => %s  (%d bytes)"
          % (pojo_file, os.stat(pojo_file).st_size)
      )
      assert os.path.exists(pojo_file)
      print("    Time taken = %.3fs" % (time.time() - time0))
      assert os.path.isfile(model_zip_file_path)
      shutil.rmtree(model_zip_path)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_pojo.py
imports: import sys
  import os
  import time
  import tempfile
  import shutil
  from tests import pyunit_utils
  from h2o.automl import H2OAutoML
  from _automl_utils import import_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: automl_pojo() without return types