def METHOD_NAME(self, zero, data):
    """
    check allocation depth from output of qemu-img map
        local(base image): zero: false, data: false
        backing(snapshot): zero: true, data: true
    """
    opts = filename_to_file_opts(self._nbd_image_obj.image_filename)
    opts[self.params['dirty_bitmap_opt']] = 'qemu:allocation-depth'
    map_cmd = '{qemu_img} map --output=json {args}'.format(
        qemu_img=get_qemu_img_binary(self.params),
        args="'json:%s'" % json.dumps(opts)
    )
    result = process.run(map_cmd, ignore_status=False, shell=True)
    for item in json.loads(result.stdout.decode().strip()):
        if item['zero'] is zero and item['data'] is data:
            break
    else:
        self.test.fail(
            'Failed to get "zero": %s, "data": %s' % (zero, data))