code: def resize(self, size, interp='bilinear'):
          
          # resize channels separately
          gray_im_resized = self.gray.resize(size, interp)
          depth_im_resized = self.depth.resize(size, interp)
  
          # return combination of resized data
          return GdImage.from_grayscale_and_depth(
              gray_im_resized, depth_im_resized)
docs: Resize the image.
  
          Parameters
          ----------
          size : int, float, or tuple
              * int   - Percentage of current size.
              * float - Fraction of current size.
              * tuple - Size of the output image.
  
          interp : :obj:`str`, optional
              Interpolation to use for re-sizing ('nearest', 'lanczos', 'bilinear',
              'bicubic', or 'cubic')