@staticmethod
def _update_last_batch(batch, *new_captions):
    """Given a batch of captions, sets their end time equal to the start
        time of the first caption in *new_captions

        The start time of the first caption in new_captions should never be 0.
        This means an invalid SCC file.

        :type batch: tuple[Caption]
        :type new_captions: tuple[Caption]
        """
    if not new_captions:
        return
    if not new_captions[0]:
        return
    if not new_captions[0].nodes:
        return
    new_caption = new_captions[0]
    if batch and batch[-1].end == 0:
        for caption in batch:
            caption.end = new_caption.start
