code: def mojo_predict_csv_test(target_dir):
      mojo_file_name = "prostate_isofor_model.zip"
      mojo_zip_path = os.path.join(target_dir, mojo_file_name)
  
      data_path = pyunit_utils.locate("smalldata/logreg/prostate.csv")
      prostate = h2o.import_file(path=data_path)
  
      # =================================================================
      # Isolation Forest
      # =================================================================
      isofor = H2OIsolationForestEstimator()
      isofor.train(training_frame=prostate)
  
      pred_h2o = isofor.predict(prostate)
      pred_h2o_df = pred_h2o.as_data_frame(use_pandas=True)
  
      download_mojo(isofor, mojo_zip_path)
  
      output_csv = "%s/prediction.csv" % target_dir
      print(
          "\nPerforming Isolation Forest Prediction using MOJO @... "
          + target_dir
      )
      pred_mojo_csv = h2o.mojo_predict_csv(
          input_csv_path=data_path,
          mojo_zip_path=mojo_zip_path,
          output_csv_path=output_csv,
      )
      pred_mojo_df = pd.DataFrame(
          pred_mojo_csv,
          dtype=np.float64,
          columns=["predict", "mean_length"],
      )
      print("*** pred_h2o_df ***")
      print(pred_h2o_df)
      print("***pred_mojo_df ***")
      print(pred_mojo_df)
      assert_frame_equal(pred_h2o_df, pred_mojo_df, check_dtype=False)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/isofor/pyunit_isofor_predictcsv.py
imports: import sys
  import tempfile
  import shutil
  import time
  import os
  import pandas
  import numpy
  from pandas.testing import assert_frame_equal
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.isolation_forest import H2OIsolationForestEstimator
label_desc: Use image node_id 2 for calling a global function with example usage: mojo_predict_csv_test(target_dir) without return types