code: def test_transform_seed_param_raise_warning():
      ds = load_dataset(incl_test=True)
      te = H2OTargetEncoderEstimator(seed=42)
      te.train(y=ds.target, training_frame=ds.train)
      encoded = te.predict(ds.test)
  
      transformed_1 = te.transform(ds.test)
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("always")
          transformed_2 = te.transform(ds.test, seed=24)
          assert len(w) == 1
          assert issubclass(w[0].category, H2ODeprecationWarning)
          assert (
              "`seed` is deprecated in `transform` method and will be ignored"
              in str(w[0].message)
          )
  
      assert pu.compare_frames(
          encoded, transformed_1, 0, tol_numeric=1e-5
      )
      assert pu.compare_frames(
          encoded, transformed_2, 0, tol_numeric=1e-5
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/targetencoder/pyunit_te_deprecated_params.py
imports: import os
  import sys
  import warnings
  import h2o
  from h2o.estimators import H2OTargetEncoderEstimator
  from h2o.exceptions import H2ODeprecationWarning
  from h2o.utils.metaclass import fullname
  from tests import pyunit_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_transform_seed_param_raise_warning() without return types