sanity_check: ERRORS was not imported from global scope