def test_is_noiseless(self):
    x = torch.zeros(1, 1)
    y = torch.zeros(1, 1)
    se = torch.zeros(1, 1)
    model = SingleTaskGP(x, y)
    self.assertTrue(is_noiseless(model))
    model = HeteroskedasticSingleTaskGP(x, y, se)
    self.assertFalse(is_noiseless(model))
    with self.assertRaises(ModelError):
        is_noiseless(ModelListGP())
def test_is_noiseless(self):
    x = torch.zeros(1, 1)
    y = torch.zeros(1, 1)
    se = torch.zeros(1, 1)
    model = SingleTaskGP(x, y)
    self.assertTrue(is_noiseless(model))
    model = HeteroskedasticSingleTaskGP(x, y, se)
    self.assertFalse(is_noiseless(model))
    with self.assertRaises(ModelError):
        is_noiseless(ModelListGP())