def METHOD_NAME(item: pytest.Item):
    is_require_snowflake = item.config.getoption("--require-snowflake", default=False)
    has_require_snowflake_marker = bool(
        list(item.iter_markers(name="require_snowflake"))
    )
    if is_require_snowflake and not has_require_snowflake_marker:
        pytest.skip(
            f"The test is skipped because it has require_snowflake marker. "
            f"This tests are only run when --require-snowflake flag is passed to pytest. "
            f"{item}"
        )
    if not is_require_snowflake and has_require_snowflake_marker:
        pytest.skip(
            f"The test is skipped because it does not have the right marker. "
            f"Only tests marked with pytest.mark.require_snowflake() are run. {item}"
        )