def METHOD_NAME(cls, *, using=DEFAULT_DB_ALIAS, execute=False):
    """
    This method ensures that transaction.on_commit are not reverted back
    Usages:
    self.capture_on_commit_callbacks(execute=True):
        resp = self.client.post(url, body)
    """
    return CaptureOnCommitCallbacksContext(using=using, execute=execute)