code: def scale(self, scale_xy):
          "Returns the pix object rescaled according to the proportions given."
          with _LeptonicaErrorTrap():
              return Pix(lept.pixScale(self._cdata, scale_xy[0], scale_xy[1])f scale(self, scale_xy):
          "Returns the pix object rescaled according to the proportions given."
          with _LeptonicaErrorTrap():
              return Pix(lept.pixScale(self._cdata, scale_xy[0], scale_xy[1]))
docs: Returns the pix object rescaled according to the proportions given.