def METHOD_NAME():
    try:
        noise_generation.generate_noise_matrix_from_trace(
            K=3,
            trace=2,
            valid_noise_matrix=True,
        )
    except ValueError as e:
        assert "py must be" in str(e)
        with pytest.raises(ValueError) as e:
            noise_generation.generate_noise_matrix_from_trace(
                K=3,
                trace=2,
                valid_noise_matrix=True,
            )