                  logger.debug("set legacy size: %s", self._legacy_size)
              if not self._font_scale:
                  self._initialize_font(face.aligned.size)
  
              logger.trace("Drawing Landmarks. Frame: '%s'. Face: %s", frame, idx)  # type: ignore
              # Landmarks
              for (pos_x, pos_y) in face.aligned.landmarks.astype("int32"):
                  cv2.circle(face.aligned.face, (pos_x, pos_y), 1, (0, 255, 255), -1)
              # Pose
              center = (face.aligned.size // 2, face.aligned.size // 2)
 
</s> remove         logger.trace("Current cache size: %s", len(self.cache))  # type: ignore
 </s> add         logger.trace("Current cache size: %s", len(self.cache))  # type:ignore[attr-defined] </s> remove             logger.trace("Rendering from cache. Frame no: %s", save_no)  # type: ignore
 </s> add             logger.trace("Rendering from cache. Frame no: %s",  # type:ignore[attr-defined]
                         save_no) </s> remove                 logger.trace("Next frame not ready. Continuing")  # type: ignore
 </s> add                 logger.trace("Next frame not ready. Continuing")  # type:ignore[attr-defined] </s> remove                     logger.trace("Selected for redetection: '%s'", key)  # type: ignore
 </s> add                     logger.trace("Selected for redetection: '%s'",  # type:ignore[attr-defined]
                                 key) </s> remove         logger.trace("Loading video frame: %s", frame_no)  # type: ignore
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
 </s> add         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("Drawing Landmarks. Frame: '%s'. Face: %s",  # type:ignore[attr-defined]
                         frame, idx)
                  logger.debug("set legacy size: %s", self._legacy_size)
              if not self._font_scale:
                  self._initialize_font(face.aligned.size)
  
            logger.trace("Drawing Landmarks. Frame: '%s'. Face: %s",  # type:ignore[attr-defined]
                         frame, idx)
              # Landmarks
              for (pos_x, pos_y) in face.aligned.landmarks.astype("int32"):
                  cv2.circle(face.aligned.face, (pos_x, pos_y), 1, (0, 255, 255), -1)
              # Pose
              center = (face.aligned.size // 2, face.aligned.size // 2)
keep keep keep keep replace keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
scripts/fsmedia.py