          keypress.set_normal_term()
          logger.debug("Closed Monitor")
          return err
  
      def _preview_monitor(self, key_press):
          """ Monitors keyboard presses on the pop-up OpenCV Preview Window.
  
          Parameters
          ----------
          key_press: str
 
</s> remove         images = dict()
 </s> add         images = {} </s> remove         self._preview_buffer = dict()
 </s> add         self._preview_buffer = {} </s> remove             image_dir = getattr(self._args, "input_{}".format(side))
 </s> add             image_dir = getattr(self._args, f"input_{side}")
    @classmethod
    def _create_resizable_window(cls, name: str, image_shape: tuple) -> None:
        """ Create a resizable OpenCV window to hold the preview image.

        name: str
            The name to display in the window header and for window identification
        shape: tuple
            The (`rows`, `columns`, `channels`) of the image to be displayed
        """
        logger.debug("Creating named window '%s' for image shape %s", name, image_shape)
        height, width = image_shape[:2]
        cv2.namedWindow(name, cv2.WINDOW_GUI_EXPANDED)
        cv2.resizeWindow(name, width, height)

          keypress.set_normal_term()
          logger.debug("Closed Monitor")
          return err
  
    @classmethod
    def _create_resizable_window(cls, name: str, image_shape: tuple) -> None:
        """ Create a resizable OpenCV window to hold the preview image.

        name: str
            The name to display in the window header and for window identification
        shape: tuple
            The (`rows`, `columns`, `channels`) of the image to be displayed
        """
        logger.debug("Creating named window '%s' for image shape %s", name, image_shape)
        height, width = image_shape[:2]
        cv2.namedWindow(name, cv2.WINDOW_GUI_EXPANDED)
        cv2.resizeWindow(name, width, height)

      def _preview_monitor(self, key_press):
          """ Monitors keyboard presses on the pop-up OpenCV Preview Window.
  
          Parameters
          ----------
          key_press: str
keep keep keep add keep keep keep keep keep keep
 training - Enable resize in popup preview image 
scripts/train.py