def METHOD_NAME(self):
    qemu_img = get_qemu_img_binary(self.params)
    opts = filename_to_file_opts(self._nbd_image_obj.image_filename)
    for bm in self._bitmaps:
        opts[self.params['dirty_bitmap_opt']] = 'qemu:dirty-bitmap:%s' % bm
        args = "'json:%s'" % json.dumps(opts)
        map_cmd = '{qemu_img} map --output=human {args}'.format(
            qemu_img=qemu_img, args=args)
        result = process.run(map_cmd, ignore_status=False, shell=True)
        if self._nbd_image_obj.image_filename not in result.stdout_text:
            self.test.fail('Failed to get bitmap info.')