code: def test_param_for_white_kernel_in_Sum(kernel):
      kernel_with_noise = kernel + wk
      wk_present, wk_param = _param_for_white_kernel_in_Sum(kernel + wk)
      assert wk_present
      kernel_with_noise.set_params(
          **{wk_param: WhiteKernel(noise_level=0.0)}
      )
      assert_array_equal(kernel_with_noise(X), kernel(X))
  
      assert not _param_for_white_kernel_in_Sum(kernel5)[0]
  
file_path: scikit-optimize/skopt/learning/gaussian_process/tests/test_gpr.py
imports: import numpy
  import pytest
  from scipy import optimize
  from numpy.testing import assert_almost_equal
  from numpy.testing import assert_array_almost_equal
  from numpy.testing import assert_array_equal
  from skopt.learning import GaussianProcessRegressor
  from skopt.learning.gaussian_process.kernels import RBF
  from skopt.learning.gaussian_process.kernels import Matern
  from skopt.learning.gaussian_process.kernels import WhiteKernel
  from skopt.learning.gaussian_process.gpr import _param_for_white_kernel_in_Sum
label_desc: Use image node_id 2 for calling a global function with example usage: test_param_for_white_kernel_in_Sum(kernel) without return types