code: def import_dataset(seed=0, mode="binary"):
      df = h2o.import_file(
          path=pu.locate("smalldata/titanic/titanic_expanded.csv"),
          header=1,
      )
      target = dict(
          binary="survived", multiclass="pclass", regression="fare"
      )[mode]
  
      fr = df.split_frame(ratios=[0.8], seed=seed)
      return pu.ns(train=fr[0], test=fr[1], target=target)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_preprocessing.py
imports: import sys, os
  import h2o
  import h2o.exceptions
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import get_partitioned_model_names
label_desc: Use image node_id 1 for calling a global function with example usage: import_dataset(seed, mode) and returns: pu