class_docstr: Tests for the deprecation warnings and raising ValueError.
class_docstr_tok: ["Tests","for","the","deprecation","warnings","and","raising","ValueError","."]
docstr: Warning from using the old noise parameter.
docstr_tok: ["Warning","from","using","the","old","noise","parameter","."]
code: def test_catch_warnings(self):
      """Warning from using the old noise parameter."""
      with self.model:
          with pytest.warns(FutureWarning):
              self.gp.marginal_likelihood(
                  "lik_noise", X=self.x, y=self.y, noise=self.sigma
              )
  
          with pytest.warns(FutureWarning):
              self.gp.conditional(
                  "cond_noise",
                  Xnew=self.x,
                  given={
                      "noise": self.sigma,
                  },
              )
  
imports: from functools import reduce
  from operator import add
  import numpy
  import numpy.testing
  import pytest
  import pymc
  from pymc.math import cartesian
label_desc: Use image node_id 1 for calling the TestMarginalSigmaParams obj's underlying member method code with example usage: obj.test_catch_warnings() without return types