code: def filter_hidden_frames(self):
          
          for group in self.groups:
              group.filter_hidden_frames()
  
          self.frames[:] = [frame for group in self.groups for frame in group.frames]
docs: Remove the frames according to the paste spec.