code: def test_all_params_are_visible_in_get_params():
      pipeline = Pipeline(
          [
              ("standardize", H2OScaler(center=True, scale=False)),
              ("pca", H2OPCA(k=2, seed=seed)),
              (
                  "estimator",
                  H2OGradientBoostingEstimator(
                      ntrees=20, max_depth=5, seed=seed
                  ),
              ),
          ]
      )
      params = pipeline.get_params()
      assert isinstance(params["standardize"], H2OScaler)
      assert params["standardize__center"] is True
      assert params["standardize__scale"] is False
      assert isinstance(params["pca"], H2OPCA)
      assert params["pca__k"] == 2
      assert params["pca__seed"] == seed
      assert isinstance(
          params["estimator"], H2OGradientBoostingEstimator
      )
      assert params["estimator__ntrees"] == 20
      assert params["estimator__max_depth"] == 5
      assert params["estimator__seed"] == seed
      # also the ones that were not set explicitly
      assert (
          params["pca__max_iterations"] is None
      )  # H2OPCA default (!= H2OPrincipalComponentAnalysisEstimator default)
      assert (
          params["estimator__learn_rate"] == 0.1
      )  # H2OGradientBoostingEstimator default
      assert params["estimator__class_sampling_factors"] is None
  
file_path: h2o-3/h2o-py/tests/testdir_sklearn/pyunit_sklearn_params.py
imports: import os, sys
  from sklearn.pipeline import Pipeline
  from h2o.sklearn import H2OAutoMLEstimator, H2OGradientBoostingEstimator, H2OScaler, H2OPCA
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_all_params_are_visible_in_get_params() without return types