def METHOD_NAME(src_path, dst_path, bitmap):
    log.info(
        "Merge bitmap %s from %r to %r",
        bitmap, src_path, dst_path)
    try:
        op = qemuimg.bitmap_merge(
            src_image=src_path,
            src_bitmap=bitmap,
            src_fmt=qemuimg.FORMAT.QCOW2,
            dst_image=dst_path,
            dst_bitmap=bitmap
        )
        op.run()
    except cmdutils.Error as e:
        raise exception.MergeBitmapError(
            reason="Failed to merge bitmap: {}".format(e),
            bitmap=bitmap,
            src_vol_path=src_path,
            dst_vol_path=dst_path)