@staticmethod
def _generate_fletcher_checksum(payload: bytes) ->bytes:
    """Return the checksum for the provided payload"""
    check_a = 0
    check_b = 0
    for char in payload:
        check_a += char
        check_a &= 255
        check_b += check_a
        check_b &= 255
    return bytes((check_a, check_b))
