code: def test_frames_can_be_passed_as_key():
      print("Check that all AutoML frames can be passed as keys.")
      ds = import_dataset()
  
      kw_args = [
          dict(training_frame=ds.train.frame_id),
          dict(
              training_frame=ds.train,
              validation_frame=ds.valid.frame_id,
          ),
          dict(
              training_frame=ds.train, blending_frame=ds.valid.frame_id
          ),
          dict(
              training_frame=ds.train,
              leaderboard_frame=ds.test.frame_id,
          ),
      ]
  
      for kwargs in kw_args:
          aml = H2OAutoML(
              project_name="py_aml_frames_as_keys",
              seed=1,
              max_models=1,
              nfolds=0,
          )
          aml.train(y=ds.target, **kwargs)
          h2o.remove(aml)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_input.py
imports: import sys, os
  import h2o
  from h2o.automl import H2OAutoML
  from tests import pyunit_utils
  from _automl_utils import import_dataset
label_desc: Use image node_id 7 for calling a global function with example usage: test_frames_can_be_passed_as_key() without return types