code: def extract_z_removed(pred_large, predictor_removed, z_values_large):
      z_values_removed = []
      for x in predictor_removed:
          z_value = z_values_large[pred_large.index(x)]
          if z_value == "NaN":
              z_values_removed.append(0)
          else:
              z_values_removed.append(abs(z_value))
      return z_values_removed
  
file_path: h2o-3/h2o-py/tests/testdir_algos/modelselection/pyunit_PUBDEV_8675_modelselection_fail.py
imports: import sys
  import math
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.model_selection import H2OModelSelectionEstimator
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 7 for calling a global function with example usage: extract_z_removed(pred_large, predictor_removed, z_values_large) and returns: z_values_removed