def METHOD_NAME():
    """
    This fixture is automatically run to clear out the events registered before and after a test function runs.
    """
    pyhf.events.__events.clear()
    pyhf.events.__disabled_events.clear()
    yield METHOD_NAME
    pyhf.events.__events.clear()
    pyhf.events.__disabled_events.clear()