def METHOD_NAME():
    def assert_not_installed():
        assert AccessAudit.trace_id_header != settings.AUDIT_TRACE_ID_HEADER, \
            AccessAudit.trace_id_header
        assert django_header not in mod.STANDARD_HEADER_KEYS, \
            (django_header, mod.STANDARD_HEADER_KEYS)
    from .. import install_trace_id_header
    django_header = to_django_header(settings.AUDIT_TRACE_ID_HEADER)
    assert_not_installed()
    install_trace_id_header()
    try:
        yield
    finally:
        AccessAudit.trace_id_header = None
        mod.STANDARD_HEADER_KEYS.remove(django_header)
        assert_not_installed()