code: def check_mojo_pojo_availability(model_id):
      model = h2o.get_model(model_id)
      if model.algo in ["stackedensemble"]:
          assert not model.have_mojo, (
              "Model %s should not support MOJO" % model.model_id
          )  # because base models don't
          assert not model.have_pojo, (
              "Model %s should not support POJO" % model.model_id
          )
      elif model.algo in ["glm", "deeplearning"]:
          assert model.have_mojo, (
              "Model %s should support MOJO" % model.model_id
          )
          assert model.have_pojo, (
              "Model %s should support POJO" % model.model_id
          )
      else:
          assert not model.have_mojo, (
              "Model %s should not support MOJO" % model.model_id
          )
          assert not model.have_pojo, (
              "Model %s should not support POJO" % model.model_id
          )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_preprocessing.py
imports: import sys, os
  import h2o
  import h2o.exceptions
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import get_partitioned_model_names
label_desc: Use image node_id 2 for calling a global function with example usage: check_mojo_pojo_availability(model_id) without return types