def reset_globals():
    """Used to reset globals between test cases."""
    global _version_mismatch_warning_logged
    _version_mismatch_warning_logged = {}
Used to reset globals between test cases.
jupyterhub/_version.py