code: def test_gam_coeffs_varimp():
      print(
          "Checking coefficients and variable importance for binomial"
      )
      h2o_data = h2o.import_file(
          path=pyunit_utils.locate(
              "smalldata/glm_test/binomial_20_cols_10KRows.csv"
          )
      )
      h2o_data["C1"] = h2o_data["C1"].asfactor()
      h2o_data["C2"] = h2o_data["C2"].asfactor()
      myY = "C21"
      h2o_data["C21"] = h2o_data["C21"].asfactor()
      buildModelCoeffVarimpCheck(
          h2o_data, myY, ["C11", "C12", "C13"], "binomial"
      )
  
      print(
          "Checking coefficients and variable importance for gaussian"
      )
      h2o_data = h2o.import_file(
          path=pyunit_utils.locate(
              "smalldata/glm_test/gaussian_20cols_10000Rows.csv"
          )
      )
      h2o_data["C1"] = h2o_data["C1"].asfactor()
      h2o_data["C2"] = h2o_data["C2"].asfactor()
      myY = "C21"
      buildModelCoeffVarimpCheck(
          h2o_data, myY, ["C11", "C12", "C13"], "gaussian"
      )
      print("gam coeff/varimp test completed successfully")
  
imports: from past.utils import old_div
  import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: test_gam_coeffs_varimp() without return types