def METHOD_NAME(helpers):
    """
    Test circuit decorator with bad parameters.
    """
    # bad annotation
    # --------------
    with pytest.raises(ValueError) as excinfo:
        @fhe.circuit({"x": "encrypted"}, helpers.configuration())
        def circuit1(x: int):
            return x + 42
    assert str(excinfo.value) == (
        f"Annotation {str(int)} for argument 'x' is not valid "
        f"(please use an fhe type such as `fhe.uint4` or 'fhe.tensor[fhe.uint4, 3, 2]')"
    )
    # missing encryption status
    # -------------------------
    with pytest.raises(ValueError) as excinfo:
        @fhe.circuit({}, helpers.configuration())
        def circuit2(x: fhe.uint3):
            return x + 42
    assert str(excinfo.value) == (
        "Encryption status of parameter 'x' of function 'circuit2' is not provided"
    )
    # bad astype
    # ----------
    with pytest.raises(ValueError) as excinfo:
        @fhe.circuit({"x": "encrypted"}, helpers.configuration())
        def circuit3(x: fhe.uint3):
            return x.astype(np.int64)
    assert str(excinfo.value) == (
        "`astype` method must be called with an fhe type "
        "for direct circuit definition (e.g., value.astype(fhe.uint4))"
    )
    # round
    # -----
    with pytest.raises(RuntimeError) as excinfo:
        @fhe.circuit({"x": "encrypted"}, helpers.configuration())
        def circuit4(x: fhe.uint3):
            return round(x)
    assert str(excinfo.value) == (
        "'round(x)' cannot be used in direct definition (you may use np.around instead)"
    )