def frombytes(data, size, bandtype=gdal.GDT_Byte):
r = ImageDriver('<STR_LIT>').raster('<STR_LIT>', size, bandtype)<EOL>r.frombytes(data)<EOL>return r<EOL>
Returns an in-memory raster initialized from a pixel buffer.

    Arguments:
    data -- byte buffer of raw pixel data
    size -- two or three-tuple of (xsize, ysize, bandcount)
    bandtype -- band data type