def METHOD_NAME(
    msg: MessageDefinition,
    expected: bool = True,
    py_version: tuple[int, ...] | sys._version_info = sys.version_info,
) -> None:
    fail_msg = (
        f"With minversion='{msg.minversion}' and maxversion='{msg.maxversion}',"
        f" and the py-version option being {py_version} "
        "the message should{}be emitable"
    )
    if expected:
        assert msg.may_be_emitted(py_version), fail_msg.format(" ")
    else:
        assert not msg.may_be_emitted(py_version), fail_msg.format(" not ")