code: def test_transform_can_override_blending_parameters():
      ds = load_dataset(incl_test=True)
      te = H2OTargetEncoderEstimator(noise=0)
      te.train(y=ds.target, training_frame=ds.train)
      transformed = te.transform(ds.test)
      transformed_blending = te.transform(ds.test, blending=True)
      try:
          assert pu.compare_frames(
              transformed, transformed_blending, 0, tol_numeric=1e-5
          )
          assert False, "should have raised"
      except AssertionError as ae:
          assert "should have raised" not in str(ae)
  
      transformed_blending_custom = te.transform(
          ds.test, blending=True, inflection_point=3, smoothing=17
      )
      try:
          assert pu.compare_frames(
              transformed_blending_custom,
              transformed_blending,
              0,
              tol_numeric=1e-5,
          )
          assert False, "should have raised"
      except AssertionError as ae:
          assert "should have raised" not in str(ae)
  
file_path: h2o-3/h2o-py/tests/testdir_algos/targetencoder/pyunit_targetencoder_transform.py
imports: import os
  import sys
  import h2o
  from h2o.estimators import H2OTargetEncoderEstimator
  from tests import pyunit_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_transform_can_override_blending_parameters() without return types