def METHOD_NAME(image, bitmap_name, inconsistent=False):
    """Check bitmap info in image"""
    test.log.info("Verify bitmap info in image")
    info = json.loads(image.info(output="json"))
    bitmaps_info = info["format-specific"]["data"].get("bitmaps")
    for bitmap in bitmaps_info:
        if bitmap["name"] == bitmap_name:
            if inconsistent and "in-use" not in bitmap["flags"]:
                test.fail("inconsistent bitmap not stored in image")
            break
    else:
        test.fail("Persistent bitmap not stored in image")