          ------
          :class:`numpy.ndarray`
              The image for the requested frame index,
          """
          logger.trace("Loading video frame: %s", frame_no)  # type: ignore
          reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
          reader.set_image_index(frame_no - 1)
          frame = reader.get_next_data()[:, :, ::-1]
          reader.close()
          return frame
  
 
</s> remove         frame = reader.get_next_data()[:, :, ::-1]
 </s> add         frame = reader.get_next_data()[:, :, ::-1]  # type:ignore[index] </s> remove         reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
        for i, frame in enumerate(reader):
 </s> add         reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type]
        for i, frame in enumerate(cast(Iterator[np.ndarray], reader)): </s> remove             logger.trace("Loading video frame: '%s'", filename)  # type: ignore
 </s> add             logger.trace("Loading video frame: '%s'", filename)  # type:ignore[attr-defined] </s> remove         logger.trace("Received frame: (filename: '%s', shape: %s",  # type: ignore
 </s> add         logger.trace("Received frame: (filename: '%s', shape: %s",  # type:ignore[attr-defined] </s> remove         logger.trace("Loading image: '%s'", filename)  # type: ignore
 </s> add         logger.trace("Loading image: '%s'", filename)  # type:ignore[attr-defined]
        logger.trace("Loading video frame: %s", frame_no)  # type:ignore[attr-defined]
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type]
          ------
          :class:`numpy.ndarray`
              The image for the requested frame index,
          """
        logger.trace("Loading video frame: %s", frame_no)  # type:ignore[attr-defined]
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type]
        logger.trace("Loading video frame: %s", frame_no)  # type:ignore[attr-defined]
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type]
          reader.set_image_index(frame_no - 1)
          frame = reader.get_next_data()[:, :, ::-1]
          reader.close()
          return frame
  
keep keep keep keep replace replace keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
scripts/fsmedia.py