from dmoj.utils.unicode import utf8bytes


def check(process_output, judge_output, **kwargs):
    import re
    from collections import Counter
    process_all = re.sub(br'\s+', '', utf8bytes(process_output))
    judge_all = re.sub(br'\s+', '', utf8bytes(judge_output))
    return Counter(process_all.lower()) == Counter(judge_all.lower())

import re
from collections import Counter

from dmoj.utils.unicode import utf8bytes


def check(process_output, judge_output, Counter=Counter, regex=re.compile(br'\s+'), **kwargs):
    process_all = regex.sub(b'', utf8bytes(process_output))
    judge_all = regex.sub(b'', utf8bytes(judge_output))
    return Counter(process_all.lower()) == Counter(judge_all.lower())

Fix easy checker.