code: def from_iterable(cls, frames, sort=False):
          
          return FrameSet(sorted(frames) if sort else frames)
docs: Build a :class:`FrameSet` from an iterable of frames.
  
          Args:
              frames (collections.Iterable): an iterable object containing frames as integers
              sort (bool): True to sort frames before creation, default is False
  
          Returns:
              :class:`FrameSet`: