code: def calc(self, x:Image, *args:Any, **kwargs:Any)->Image:
          "Apply to image `x`, wrapping it if necessary."
          if self._wrap: return getattr(x, self._wrap)(self.func, *args, **kwargs)
          else:          return self.func(x, *args, **kwargsf calc(self, x:Image, *args:Any, **kwargs:Any)->Image:
          "Apply to image `x`, wrapping it if necessary."
          if self._wrap: return getattr(x, self._wrap)(self.func, *args, **kwargs)
          else:          return self.func(x, *args, **kwargs)
docs: Apply to image `x`, wrapping it if necessary.