code: def assert_arrays_equal_NA(coef_m_NA_dict, coef_m):
      coefNAIndex = 0
      for index in range(len(coef_m)):
          if not (
              coef_m_NA_dict[coefNAIndex][0] == coef_m[index][0]
          ):  # skip over coefficients with NA that is 0.0
              coefNAIndex = coefNAIndex + 1
          assert (
              abs(coef_m_NA_dict[coefNAIndex][1] - coef_m[index][1])
              < 1e-6
          ), "Expected: {0}, Actual: {1}".format(
              coef_m_NA_dict[coefNAIndex][1], coef_m[index][1]
          )
          coefNAIndex = coefNAIndex + 1
  
file_path: h2o-3/h2o-py/tests/testdir_algos/glm/pyunit_pubdev_6999_glm_interaction_NA.py
imports: from past.utils import old_div
  import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
  import pandas
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: assert_arrays_equal_NA(coef_m_NA_dict, coef_m) without return types