def METHOD_NAME(pkg_files: Path):
    """
    Replace some absolute imports with relative ones.
    """
    init = pkg_files.joinpath('__init__.py')
    text = init.read_text()
    text = text.replace('from platformdirs.', 'from .')
    text = text.replace('from typing_extensions', 'from ..typing_extensions')
    init.write_text(text)