def METHOD_NAME(self):
    if not(self.data_allocated):
        self.data_in = self._allocate(self.shape, self.dtype_in)
        self.data_out = self._allocate(self.shape_out, self.dtype_out)
        self.data_allocated = True