def METHOD_NAME(link: Path) -> Path:
    """A custom version of os.readlink/pathlib.Path.readlink.
    pathlib.Path.readlink is what we ideally would want to use, but it is only available on python>=3.9.
    """
    if sys.version_info >= (3, 9):
        return link.METHOD_NAME()
    else:
        return Path(os.METHOD_NAME(link))