def METHOD_NAME(request: FixtureRequest) -> Callable[[list[str]], None]:
    def patcher(paths: list[str]) -> None:
        from litestar.cli._utils import AUTODISCOVERY_FILE_NAMES
        old_paths = AUTODISCOVERY_FILE_NAMES[::]
        AUTODISCOVERY_FILE_NAMES[:] = paths
        def finalizer() -> None:
            AUTODISCOVERY_FILE_NAMES[:] = old_paths
        request.addfinalizer(finalizer)
    return patcher