code: def assertEqualVIF(vif1, vif2):
      keys = vif1.keys()
      for key in keys:
          if math.isnan(vif1[key]):
              assert math.isnan(vif2[key])
          else:
              assert abs(vif1[key] - vif2[key]) < 1e-6, (
                  "Expected VIF: {0}, Actual VIF: {1}.  They are "
                  "different".format(vif1[key], vif2[key])
              )
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: assertEqualVIF(vif1, vif2) without return types