code: def draw_box(self, box):
          
          box_data = self._data.copy()
          min_i = box.min_pt[1]
          min_j = box.min_pt[0]
          max_i = box.max_pt[1]
          max_j = box.max_pt[0]
  
          # draw the vertical lines
          for j in range(min_j, max_j):
              box_data[min_i, j, :] = BINARY_IM_MAX_VAL * np.ones(self.channels)
              box_data[max_i, j, :] = BINARY_IM_MAX_VAL * np.ones(self.channels)
  
          # draw the horizontal lines
          for i in range(min_i, max_i):
              box_data[i, min_j, :] = BINARY_IM_MAX_VAL * np.ones(self.channels)
              box_data[i, max_j, :] = BINARY_IM_MAX_VAL * np.ones(self.channels)
  
          return ColorImage(box_data, self._frame)
docs: Draw a white box on the image.
  
          Parameters
          ----------
          :obj:`autolab_core.Box`
              A 2D box to draw in the image.
  
          Returns
          -------
          :obj:`ColorImage`
              A new image that is the same as the current one, but with
              the white box drawn in.