code: def download_mojo(model, mojo_zip_path, genmodel_path=None):
      mojo_zip_path = os.path.abspath(mojo_zip_path)
      parent_dir = os.path.dirname(mojo_zip_path)
  
      print("\nDownloading MOJO @... " + parent_dir)
      time0 = time.time()
      if genmodel_path is None:
          genmodel_path = os.path.join(parent_dir, genmodel_name)
      mojo_file = model.download_mojo(
          path=mojo_zip_path,
          get_genmodel_jar=True,
          genmodel_name=genmodel_path,
      )
  
      print(
          "    => %s  (%d bytes)"
          % (mojo_file, os.stat(mojo_file).st_size)
      )
      assert os.path.exists(mojo_file)
      print("    Time taken = %.3fs" % (time.time() - time0))
      assert os.path.exists(mojo_zip_path)
      print(
          "    => %s  (%d bytes)"
          % (mojo_zip_path, os.stat(mojo_zip_path).st_size)
      )
      assert os.path.exists(genmodel_path)
      print(
          "    => %s  (%d bytes)"
          % (genmodel_path, os.stat(genmodel_path).st_size)
      )
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_mojo_predict.py
imports: import sys
  import tempfile
  import shutil
  import time
  import os
  import pandas
  from pandas.testing import assert_frame_equal
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: download_mojo(model, mojo_zip_path, genmodel_path) without return types