async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def stop(self, action_name: str) -> None:
        """Defines how to record the duration once an action is complete."""