def METHOD_NAME(cls, bits: array.array) -> array.array:
    hash = 0
    for i in range(0, len(bits) - 8, 8):
        hash += int("".join(map(str, map(int, bits[i:i + 8]))), 2)
    return array.array("B", list(map(bool, map(int, "{0:08b}".format(hash % 256)))))