def METHOD_NAME(helpers):
    """
    Test static indexing with bad parameters.
    """
    configuration = helpers.configuration()
    # with float
    # ----------
    compiler = fhe.Compiler(lambda x: x[1.5], {"x": "encrypted"})
    inputset = [np.random.randint(0, 2**3, size=(3,)) for _ in range(100)]
    with pytest.raises(ValueError) as excinfo:
        compiler.compile(inputset, configuration)
    assert str(excinfo.value) == "Indexing with '1.5' is not supported"
    # with bad slice
    # --------------
    compiler = fhe.Compiler(lambda x: x[slice(1.5, 2.5, None)], {"x": "encrypted"})
    inputset = [np.random.randint(0, 2**3, size=(3,)) for _ in range(100)]
    with pytest.raises(ValueError) as excinfo:
        compiler.compile(inputset, configuration)
    assert str(excinfo.value) == "Indexing with '1.5:2.5' is not supported"