docs: def _if_not_closed(f):
      """Run the method iff. the memory view hasn't been closed and the parent
      object has not been freed."""
      @add_signature_to_docstring(f)
      @functools.wraps(f)
      def f_(self, *args, **kwargs):
          if self.closed or self._parent._freed:
              raise OSError
          return f(self, *args, **kwargs)
  
      return f_