  
      @staticmethod
      def _scale_image(image, image_size, scale):
          """ Scale the image and optional pad to given size """
          interpln = cv2.INTER_CUBIC if scale > 1.0 else cv2.INTER_AREA  # pylint:disable=no-member
          if scale != 1.0:
              dims = (int(image_size[1] * scale), int(image_size[0] * scale))
              logger.trace("Resizing detection image from %s to %s. Scale=%s",
                           "x".join(str(i) for i in reversed(image_size)),
                           "x".join(str(i) for i in dims), scale)
 
</s> remove             image = cv2.resize(image, dims, interpolation=interpln)  # pylint:disable=no-member
 </s> add             image = cv2.resize(image, dims, interpolation=interpln) </s> remove                 batch[idx, ...] = cv2.resize(images[idx, ...],  # pylint:disable=no-member
                                             (rwidth, rheight))
 </s> add                 batch[idx, ...] = cv2.resize(images[idx, ...], (rwidth, rheight)) </s> remove         if face.shape[0] < self.input_size:
            interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
        else:
            interpolation = cv2.INTER_AREA  # pylint:disable=no-member

        face = cv2.resize(face,  # pylint:disable=no-member
                          dsize=(self.input_size, self.input_size),
                          interpolation=interpolation)
 </s> add         sizes = (self.input_size, self.input_size)
        interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
        face = cv2.resize(face, dsize=sizes, interpolation=interpolation) </s> remove         if face.shape[0] < self.input_size:
            interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
        else:
            interpolation = cv2.INTER_AREA  # pylint:disable=no-member

        face = cv2.resize(face,  # pylint:disable=no-member
                          dsize=(self.input_size, self.input_size),
                          interpolation=interpolation)
 </s> add         sizes = (self.input_size, self.input_size)
        interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
        face = cv2.resize(face, dsize=sizes, interpolation=interpolation) </s> remove             if face.shape[0] < self.input_size:
                interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
            else:
                interpolation = cv2.INTER_AREA  # pylint:disable=no-member

            face = cv2.resize(face,  # pylint:disable=no-member
                              dsize=(int(self.input_size), int(self.input_size)),
                              interpolation=interpolation)
 </s> add             interpolation = cv2.INTER_CUBIC if face.shape[0] < self.input_size else cv2.INTER_AREA
            face = cv2.resize(face, dsize=sizes, interpolation=interpolation)
        interpln = cv2.INTER_CUBIC if scale > 1.0 else cv2.INTER_AREA
  
      @staticmethod
      def _scale_image(image, image_size, scale):
          """ Scale the image and optional pad to given size """
        interpln = cv2.INTER_CUBIC if scale > 1.0 else cv2.INTER_AREA
          if scale != 1.0:
              dims = (int(image_size[1] * scale), int(image_size[0] * scale))
              logger.trace("Resizing detection image from %s to %s. Scale=%s",
                           "x".join(str(i) for i in reversed(image_size)),
                           "x".join(str(i) for i in dims), scale)
keep keep keep keep replace keep keep keep keep keep
 # pylint:disable=no-member cleanup (#927)

# pylint:disable=no-member cleanup 
plugins/extract/detect/_base.py