code: def test_bad_modeling_plan_using_full_syntax():
      try:
          H2OAutoML(modeling_plan=[dict(steps=["def_1"])])
      except AssertionError as e:
          assert "each definition must have a 'name' key" in str(e)
  
      try:
          H2OAutoML(
              modeling_plan=[
                  dict(name="GBM", steps=["def_1"], alias="defaults")
              ]
          )
      except AssertionError as e:
          assert "each definition must have only 1 or 2 keys" in str(e)
  
      try:
          H2OAutoML(modeling_plan=[dict(name="GBM", alias="all_steps")])
      except AssertionError as e:
          assert (
              "alias must be one of ['all', 'defaults', 'grids']"
              in str(e)
          )
  
      try:
          H2OAutoML(modeling_plan=[dict(name="GBM", dummy=["def_1"])])
      except AssertionError as e:
          assert (
              "steps definitions support only the following keys: name, alias, steps"
              in str(e)
          )
  
      try:
          H2OAutoML(modeling_plan=[dict(name="GBM", steps=["def_1"])])
      except AssertionError as e:
          assert "each step must be a dict" in str(e)
  
      try:
          H2OAutoML(
              modeling_plan=[
                  dict(name="GBM", steps=[dict(foo="def_1")])
              ]
          )
      except AssertionError as e:
          assert "each step must have an 'id' key" in str(e)
  
      try:
          H2OAutoML(
              modeling_plan=[
                  dict(
                      name="GBM", steps=[dict(id="def_1", weight=3 / 4)]
                  )
              ]
          )
      except AssertionError as e:
          assert "weight must be an integer" in str(e)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/automl/pyunit_automl_modeling_plan.py
imports: import sys, os
  import h2o
  import h2o.exceptions
  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_bad_modeling_plan_using_full_syntax() without return types