def transformations(self, size, target_size):
        sw, sh = size
        tw, th = target_size
        if not self.expand and tw <= sw and sh<=th:
            return []

        if sw*th>sh*tw:
            h = sh*tw//sw
            return [('resize', (tw, h))]
        else:
            w = sw*th//sh
            return [('resize', (w, th))]
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/unstable/utils/image_resizers.py/ResizeFit.transformations/swapped operands of `<=`