def get_target_size(self, size, target_size):
        transforms = self.transformations(size, target_size)
        for transformation, params in transforms:
            if transformation == 'resize':
                size = params
            elif transformation == 'crop':
                size = (params[2] - params[0], params[3] - params[1])
            else: # pragma: no cover
                raise NotImplementedError(transformation)
        return size
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/unstable/utils/image_resizers.py/Resizer.get_target_size/original