def isimageobject(x):
    """Is an object a vipy.image class Image, ImageCategory, ImageDetection?"""
    return str(type(x)) in ["<class 'vipy.image.Image'>",
        "<class 'vipy.image.ImageCategory'>",
        "<class 'vipy.image.ImageDetection'>"]
