code: def runMojoPredictOnly(tmpdir, mojoname, glrmIterNumber=100):
      outFileName = os.path.join(tmpdir, "out_mojo.csv")
      mojoZip = os.path.join(tmpdir, mojoname) + ".zip"
      genJarDir = str.split(str(tmpdir), "/")
      genJarDir = "/".join(
          genJarDir[0 : genJarDir.index("h2o-py")]
      )  # locate directory of genmodel.jar
  
      java_cmd = [
          "java",
          "-ea",
          "-cp",
          os.path.join(
              genJarDir,
              "h2o-assemblies/genmodel/build/libs/genmodel.jar",
          ),
          "-Xmx12g",
          "-XX:MaxPermSize=2g",
          "-XX:ReservedCodeCacheSize=256m",
          "hex.genmodel.tools.PredictCsv",
          "--input",
          os.path.join(tmpdir, "in.csv"),
          "--output",
          outFileName,
          "--mojo",
          mojoZip,
          "--decimal",
      ]
      java_cmd.append("--glrmIterNumber")
      java_cmd.append(str(glrmIterNumber))
  
      p = subprocess.Popen(java_cmd, stdout=PIPE, stderr=STDOUT)
      o, e = p.communicate()
  
file_path: h2o-3/h2o-py/tests/testdir_javapredict/pyunit_pubdev_5858_GLRMIterNumber.py
imports: import sys, os
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator
  from random import randint
  import re
  import time
  import subprocess
  from subprocess import STDOUT, PIPE
label_desc: Use image node_id 3 for calling a global function with example usage: runMojoPredictOnly(tmpdir, mojoname, glrmIterNumber) without return types