code: def assert_list_frame_equal(
      cmi, rel, predictor_rel_cmi_frame, tol=1e-6
  ):
      rel_frame = predictor_rel_cmi_frame[3].as_data_frame(
          use_pandas=False
      )
      cmi_frame = predictor_rel_cmi_frame[4].as_data_frame(
          use_pandas=False
      )
      count = 1
      for one_cmi in cmi:
          assert abs(float(cmi_frame[count][0]) - one_cmi) < tol, (
              "expected: {0}, actual: {1} and they are "
              "different".format(float(cmi_frame[count][0]), one_cmi)
          )
          assert (
              abs(float(rel_frame[count][0]) - rel[count - 1]) < tol
          ), (
              "expected: {0}, actual: {1} and they are "
              "different".format(
                  float(rel_frame[count][0]), rel[count - 1]
              )
          )
          count += 1
  
imports: import os
  import sys
  import h2o
  from h2o.estimators.infogram import H2OInfogram
  from tests import pyunit_utils
label_desc: Use image node_id 2 for calling a global function with example usage: assert_list_frame_equal(cmi, rel, predictor_rel_cmi_frame, tol) without return types