code: def refresh(self)->None:
          "Apply any logit, flow, or affine transfers that have been sent to the `Image`."
          if self._logit_px is not None:
              self._px = self._logit_px.sigmoid_()
              self._logit_px = None
          if self._affine_mat is not None or self._flow is not None:
              self._px = _grid_sample(self._px, self.flow, **self.sample_kwargs)
              self.sample_kwargs = {}
              self._flow = None
          return self refresh(self)->None:
          "Apply any logit, flow, or affine transfers that have been sent to the `Image`."
          if self._logit_px is not None:
              self._px = self._logit_px.sigmoid_()
              self._logit_px = None
          if self._affine_mat is not None or self._flow is not None:
              self._px = _grid_sample(self._px, self.flow, **self.sample_kwargs)
              self.sample_kwargs = {}
              self._flow = None
          return self
docs: Apply any logit, flow, or affine transfers that have been sent to the `Image`.