def METHOD_NAME(tmp_path):
    path = str(tmp_path / "tmpfile")
    # Create triggers a modify event along with the create event in Py3
    # So, let's do this before configuring the beacon
    create(path)
    config = [{"directories": {str(tmp_path): {"mask": ["modify"]}}}]
    assertValid(config)
    assert watchdog.beacon(config) == []
    create(path, "some content")
    ret = check_events(config)
    modified = False
    for event in ret:
        # "modified" requires special handling
        # A modification sometimes triggers 2 modified events depending on
        # the OS and the python version
        # When the "modified" event triggers on modify, it will have the
        # path to the temp file (path), other modified events will contain
        # the path minus "tmpfile" and will not match. That's how we'll
        # distinguish the two
        if event["change"] == "modified":
            if event["path"] == path:
                modified = True
    # Check results of the for loop to validate modified
    assert modified