code: def test_nfolds_param():
      print("Check nfolds is passed through to base models")
      ds = import_dataset()
      aml = H2OAutoML(
          project_name="py_aml_nfolds3", nfolds=3, max_models=3, seed=1
      )
      aml.train(y=ds.target, training_frame=ds.train)
      base_models = get_partitioned_model_names(aml.leaderboard).base
      amodel = h2o.get_model(base_models[0])
      assert amodel.params["nfolds"]["actual"] == 3
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_cross_validation.py
imports: import sys, os
  from itertools import cycle, islice
  from random import uniform
  import h2o
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import import_dataset, get_partitioned_model_names
label_desc: Use image node_id 1 for calling a global function with example usage: test_nfolds_param() without return types