def METHOD_NAME():
    assert os.path.isdir("/does/not/exist") is False
    sink = _gen_sink_subclass()
    with pytest.raises(ExceptionSink.ExceptionSinkError) as exc:
        sink.reset_log_location("/does/not/exist")
    assert (
        "The provided log location path at '/does/not/exist' is not writable or could not be "
        "created"
    ) in str(exc.value)
    # NB: This target is marked with 'platform_specific_behavior' because OSX errors out here at
    # creating a new directory with safe_mkdir(), Linux errors out trying to create the directory
    # for its log files with safe_open(). This may be due to differences in the filesystems.
    # TODO: figure out why we error out at different points here!
    with pytest.raises(ExceptionSink.ExceptionSinkError) as exc:
        sink.reset_log_location("/")
    err_str = {
        Platform.macos_arm64: (
            "The provided log location path at '/' is not writable or could not be created: "
            "[Errno 21] Is a directory: '/'."
        ),
        Platform.macos_x86_64: (
            "The provided log location path at '/' is not writable or could not be created: "
            "[Errno 21] Is a directory: '/'."
        ),
        Platform.linux_arm64: (
            "Error opening fatal error log streams for log location '/': [Errno 13] Permission "
            "denied:"
        ),
        Platform.linux_x86_64: (
            "Error opening fatal error log streams for log location '/': [Errno 13] Permission "
            "denied:"
        ),
    }
    assert match(Platform.create_for_localhost(), err_str) in str(exc.value)