code: def load_dataset(incl_test=False, incl_foldc=False):
      fr = h2o.import_file(
          pu.locate("smalldata/titanic/titanic_expanded.csv"), header=1
      )
      target = "survived"
      train = fr
      test = None
      if incl_test:
          fr = fr.split_frame(
              ratios=[0.8],
              destination_frames=["titanic_train", "titanic_test"],
              seed=seed,
          )
          train = fr[0]
          test = fr[1]
      if incl_foldc:
          train["foldc"] = train.kfold_column(3, seed)
      return pu.ns(train=train, test=test, target=target)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/targetencoder/pyunit_te_deprecated_params.py
imports: import os
  import sys
  import warnings
  import h2o
  from h2o.estimators import H2OTargetEncoderEstimator
  from h2o.exceptions import H2ODeprecationWarning
  from h2o.utils.metaclass import fullname
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: load_dataset(incl_test, incl_foldc) and returns: pu