def judge_checksum(content: bytes) -> bool:
    """
    Judge if the checksum is right or not.
    :param content: the content of segment
    :return: A bool
    """

    even_sum = 0x0
    odd_sum = 0x0

    for i in range(len(content)):
        b = content[i]
        if i % 2:
            odd_sum += b
            odd_sum %= 256
        else:
            even_sum += b
            even_sum %= 256

    return even_sum == 0 and odd_sum == 0