code: def prepareData(pathToFile):
      train_data = h2o.import_file(pyunit_utils.locate(pathToFile))
      train_data["C1"] = train_data["C1"].asfactor()
      train_data["C2"] = train_data["C2"].asfactor()
      train_data["C3"] = train_data["C3"].asfactor()
      train_data["C4"] = train_data["C4"].asfactor()
      train_data["C5"] = train_data["C5"].asfactor()
      return train_data
  
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 2 for calling a global function with example usage: prepareData(pathToFile) and returns: train_data