code: def test_default_strategy_is_none():
      ds = load_dataset(incl_test=True)
      te = H2OTargetEncoderEstimator(noise=0)
      te.train(y=ds.target, training_frame=ds.train)
      encoded = te.predict(ds.test)
  
      te_none = H2OTargetEncoderEstimator(
          data_leakage_handling="none", noise=0
      )
      te_none.train(y=ds.target, training_frame=ds.train)
      encoded_none = te_none.predict(ds.test)
  
      assert pu.compare_frames(
          encoded, encoded_none, 0, tol_numeric=1e-5
      )
  
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 2 for calling a global function with example usage: test_default_strategy_is_none() without return types