def METHOD_NAME():
    def test_model(noise_model, num_keys=1):
        assert isinstance(noise_model, qibo.noise.NoiseModel)
        errorkeys = noise_model.errors.keys()
        assert len(errorkeys) == num_keys
        error = list(noise_model.errors.values())[0][0][1]
        assert isinstance(error, qibo.noise.PauliError)
        assert len(error.options) == 3 and np.sum(pair[1] for pair in error.options) < 1
    noise_model1 = noisemodels.PauliErrorOnAll()
    test_model(noise_model1)
    noise_model2 = noisemodels.PauliErrorOnAll([0.1, 0.1, 0.1])
    test_model(noise_model2)
    noise_model3 = noisemodels.PauliErrorOnAll(None)
    test_model(noise_model3)
    with pytest.raises(ValueError):
        noise_model4 = noisemodels.PauliErrorOnAll([0.1, 0.2])
    noise_model1 = noisemodels.PauliErrorOnX()
    test_model(noise_model1)
    noise_model2 = noisemodels.PauliErrorOnX([0.1, 0.1, 0.1])
    test_model(noise_model2)
    noise_model3 = noisemodels.PauliErrorOnX(None)
    test_model(noise_model3)
    with pytest.raises(ValueError):
        noise_model4 = noisemodels.PauliErrorOnX([0.1, 0.2])