def _check_lr_seg(tmpList):
    """
    Helper method to validate the LR Segment.

    :param tmpList: List of LRSegment

    :return: None. In case of error, assert will fail.

    """
    assert len(tmpList) > 0
    assert tmpList[0].hasPred is False
    for i in range(len(tmpList)):
        if i == 0:
            assert tmpList[i].hasPred is False
        else:
            assert tmpList[i].hasPred is True
        assert tmpList[i].encrypted == tmpList[0].encrypted
        assert tmpList[i].isEFLR == tmpList[0].isEFLR
        assert tmpList[i].hasTrailingLength == tmpList[0].hasTrailingLength
