code: def trim(stream, **kwargs):
      
      return FilterNode(stream, trim.__name__, kwargs=kwargs).stream()
docs: Trim the input so that the output contains one continuous subpart of the input.
  
      Args:
          start: Specify the time of the start of the kept section, i.e. the frame with the timestamp start will be the
              first frame in the output.
          end: Specify the time of the first frame that will be dropped, i.e. the frame immediately preceding the one
              with the timestamp end will be the last frame in the output.
          start_pts: This is the same as start, except this option sets the start timestamp in timebase units instead of
              seconds.
          end_pts: This is the same as end, except this option sets the end timestamp in timebase units instead of
              seconds.
          duration: The maximum duration of the output in seconds.
          start_frame: The number of the first frame that should be passed to the output.
          end_frame: The number of the first frame that should be dropped.
  
      Official documentation: `trim <https://ffmpeg.org/ffmpeg-filters.html#trim>`__