def METHOD_NAME(img, bitmap_name):
    """"Check the result of bitmap add"""
    add_bitmap_info = [
        {
            "flags": [
                "auto"
            ],
            "name": "%s" % bitmap_name,
            "granularity": 65536
        }
    ]
    info_output = json.loads(img.info(output="json"))
    if "bitmaps" not in info_output["format-specific"]["data"]:
        test.fail("Add bitmap failed, and image info is '%s'" % info_output)
    elif add_bitmap_info != info_output["format-specific"]["data"][
            "bitmaps"]:
        test.fail(
            "The bitmap info is not correct, and the complete image info "
            "is '%s'" % info_output)