def image(im, reverse=False):
    mask = 0xFF if reverse else 0x00
    # Rotate and mirror the image
    rim = im.rotate(-90).transpose(Image.FLIP_LEFT_RIGHT)
    command([0x22])  # Change display to vertical write mode for graphics
    position(0, 0)
    data([BITREVERSE[ord(x)] ^ mask for x in list(rim.tostring())])
    command([0x20])  # Switch back to horizontal write mode for text
Checks given asset for properties that should be present on all assets.
dataset/ETHPy150Open rm-hull/pcd8544/src/lcd.py/image--crossover with--dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestGroup.assertValidAsset