code: def test_fails_on_unknown_strategy():
      try:
          H2OTargetEncoderEstimator(data_leakage_handling="foo")
          assert False, "should have raised"
      except H2OTypeError as e:
          assert "data_leakage_handling" in str(e)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/targetencoder/pyunit_targetencoder_data_leakage.py
imports: import itertools
  import os
  import sys
  import h2o
  from h2o.estimators import H2OTargetEncoderEstimator, H2OGradientBoostingEstimator
  from h2o.exceptions import H2OTypeError
  from tests import pyunit_utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_fails_on_unknown_strategy() without return types