code: def resize(self, size:Union[int,TensorImageSize]) -> 'ImagePoints':
          "Resize the image to `size`, size can be a single int."
          if isinstance(size, int): size=(1, size, size)
          self._flow.size = size[1:]
          return self resize(self, size:Union[int,TensorImageSize]) -> 'ImagePoints':
          "Resize the image to `size`, size can be a single int."
          if isinstance(size, int): size=(1, size, size)
          self._flow.size = size[1:]
          return self
docs: Resize the image to `size`, size can be a single int.