code: def h2odownload_pojo():
      """
      Python API test: h2o.download_pojo(model, path=u'', get_jar=True)
  
      Copied from glm_download_pojo.py
      """
      h2o_df = h2o.import_file(
          pyunit_utils.locate("smalldata/prostate/prostate.csv")
      )
      h2o_df["CAPSULE"] = h2o_df["CAPSULE"].asfactor()
      binomial_fit = H2OGeneralizedLinearEstimator(family="binomial")
      binomial_fit.train(
          y="CAPSULE",
          x=["AGE", "RACE", "PSA", "GLEASON"],
          training_frame=h2o_df,
      )
      try:
          results_dir = pyunit_utils.locate(
              "results"
          )  # find directory path to results folder
          h2o.download_pojo(binomial_fit, path=results_dir)
          assert os.path.isfile(
              os.path.join(results_dir, "h2o-genmodel.jar")
          ), ("h2o.download_pojo() " "command is not working.")
      except:
          h2o.download_pojo(binomial_fit)
  
imports: import sys, os
  from tests import pyunit_utils
  import h2o
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: h2odownload_pojo() without return types