code: def test_signature_and_examples_are_saved_correctly(
      h2o_iris_model, h2o_iris_model_signature
  ):
      model = h2o_iris_model.model
      example_ = h2o_iris_model.inference_data.as_data_frame().head(3)
      for signature in (None, h2o_iris_model_signature):
          for example in (None, example_):
              with TempDir() as tmp:
                  path = tmp.path("model")
                  mlflow.h2o.save_model(
                      model,
                      path=path,
                      signature=signature,
                      input_example=example,
                  )
                  mlflow_model = Model.load(path)
                  if signature is None and example is None:
                      assert mlflow_model.signature is None
                  else:
                      assert (
                          mlflow_model.signature
                          == h2o_iris_model_signature
                      )
                  if example is None:
                      assert (
                          mlflow_model.saved_input_example_info is None
                      )
                  else:
                      assert all(
                          (
                              _read_example(mlflow_model, path)
                              == example
                          ).all()
                      )
  
imports: import json
  import os
  from collections import namedtuple
  from unittest import mock
  import h2o
  import numpy
  import pandas
  import pytest
  import yaml
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
  from sklearn import datasets
  import mlflow
  import mlflow.h2o
  import mlflow.pyfunc.scoring_server
  from mlflow import pyfunc
  from mlflow.models import Model, ModelSignature
  from mlflow.models.utils import _read_example
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.types import DataType
  from mlflow.types.schema import ColSpec, Schema
  from mlflow.utils.environment import _mlflow_conda_env
  from mlflow.utils.file_utils import TempDir
  from mlflow.utils.model_utils import _get_flavor_configuration
  from tests.helper_functions import _assert_pip_requirements, _compare_conda_env_requirements, _compare_logged_code_paths, _mlflow_major_version_string, pyfunc_serve_and_score_model
label_desc: Use image node_id 6 for calling a global function with example usage: test_signature_and_examples_are_saved_correctly(h2o_iris_model, h2o_iris_model_signature) without return types