Input:
sequence: A valid sequence structure.
index: A index of a frame or a vector of indices of frames.
Output