import typing


def run_smth_once() -> typing.Callable:
    """Fixture to create a function that once yield True and False later."""
    kek = True

    def _func():
        nonlocal kek
        if kek:
            kek = False
            return True
        return False

    return _func