async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def unlock(self, key):
    if self._tokens[key] > 0:
      self._tokens[key] -= 1