def METHOD_NAME(
    expressions: Sequence[Expression],
    expected_types: Sequence[ParamType],
    extra_param: bool,
    should_raise: bool,
) -> None:
    entity = QueryEntity(
        EntityKey.EVENTS,
        ColumnSet(
            [
                ("event_id", String()),
                ("level", String(Modifiers(nullable=True))),
                ("str_col", String()),
                ("timestamp", DateTime()),
                ("received", DateTime(Modifiers(nullable=True))),
            ]
        ),
    )
    func_name = "like"
    validator = SignatureValidator(expected_types, extra_param)
    if should_raise:
        with pytest.raises(InvalidFunctionCall):
            validator.validate(func_name, expressions, entity)
    else:
        validator.validate(func_name, expressions, entity)