code: def memwarp(src_ds, res=None, extent=None, t_srs=None, r=None, oudir=None, dst_ndv=0, verbose=True):
      
      driver = iolib.mem_drv
      return warp(src_ds, res, extent, t_srs, r, driver=driver, dst_ndv=dst_ndv, verbose=verbose)
docs: Helper function that calls warp for single input Dataset with output to memory (GDAL Memory Driver)