def METHOD_NAME(hash_val):
    linesize = _HSIZE + 1
    diff_chars = ".v>+"  # identical, vertical diff, horizontal diff, vertical+horizontal diff
    ret = ""
    for y in range(_HSIZE):
        line = ""
        for x in range(_HSIZE):
            pos = y * linesize + x
            bits = hash_val >> (pos * 2) & 0b11
            line += " {}".format(diff_chars[bits])
        ret += line + "\n"
    return ret