code: def test_exploitation_impacts_exploration_duration():
      ds = import_dataset()
      planned_duration = 60
      aml = H2OAutoML(
          project_name="py_exploitation_ratio_max_runtime",
          exploitation_ratio=0.5,  # excessive ratio on purpose, due to training overheads in multinode
          exclude_algos=[
              "DeepLearning",
              "XGBoost",
          ],  # removing some algos for the same reason
          max_runtime_secs=planned_duration,
          seed=1,
          verbosity="info",
      )
      aml.train(y=ds.target, training_frame=ds.train)
      automl_start = int(aml.training_info["start_epoch"])
      assert "start_GBM_lr_annealing" in aml.training_info
      # assert 'start_XGBoost_lr_search' in aml.training_info
      first_exploitation_step = "start_GBM_lr_annealing"
      after_exploitation_step = "start_completion_GBM_grid_1"
      if (
          first_exploitation_step in aml.training_info
          and after_exploitation_step in aml.training_info
      ):
          exploitation_start = int(
              aml.training_info[first_exploitation_step]
          )
          exploration_duration = exploitation_start - automl_start
          after_start = int(aml.training_info[after_exploitation_step])
          exploitation_duration = after_start - exploitation_start
          # can't reliably check duration ratio
          assert 0 < exploration_duration < planned_duration
          print(aml.leaderboard)
          print(exploitation_duration)
          print(exploration_duration)
          assert 0 < exploitation_duration < exploration_duration
      else:
          print(aml.leaderboard)
          print(
              "budget time was too small to start and complete exploitation"
          )
  
imports: import sys, os
  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 3 for calling a global function with example usage: test_exploitation_impacts_exploration_duration() without return types