def METHOD_NAME(sigalrm_timeout):
    """Fixture to track contexts used in tests
    For cleanup purposes
    """
    METHOD_NAME = set()
    yield METHOD_NAME
    for ctx in METHOD_NAME:
        try:
            term_context(ctx, teardown_timeout)
        except Exception:
            # reset Context.instance, so the failure to term doesn't corrupt subsequent tests
            zmq.sugar.context.Context._instance = None
            raise