async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def memoized(*args):
        try:
            return stored_results[args]
        except KeyError:
            result = stored_results[args] = fn(*args)
            return result