def _make_frame_slices(n_files, original_frame_slice):
    """
    >>> _make_frame_slices(2, (0, -1))
    [(0, -1), (0, -1)]

    >>> _make_frame_slices(3, [(0, -1), (0, -2)],)
    [(0, -1), (0, -2), (0, -1, 1)]

    >> # raise
    >>> _make_frame_slices(3, None)
    Traceback (most recent call last):
        ...
    ValueError: must be a tuple of integer values or a list of tuple of integer values

    >>> _make_frame_slices(2, [(0, -1), (0, -2), (0, -1, 1)])
    Traceback (most recent call last):
        ...
    ValueError: len of frame_slice tuple-list must be smaller or equal number of files
    """
    if isinstance(original_frame_slice, tuple):
        return [original_frame_slice for i in range(n_files)]
    elif isinstance(original_frame_slice, list):
        fs_len = len(original_frame_slice)
        if fs_len < n_files:
            new_list = original_frame_slice[:] + [(0, -1, 1) for _ in range
                (fs_len, n_files)]
        elif fs_len == n_files:
            new_list = original_frame_slice
        else:
            raise ValueError(
                'len of frame_slice tuple-list must be smaller or equal number of files'
                )
        return new_list
    else:
        raise ValueError(
            'must be a tuple of integer values or a list of tuple of integer values'
            )
