def get_qemu_info(path, backing_chain=False, fail_on_error=True):
cmd = ['<STR_LIT>', '<STR_LIT:info>', '<STR_LIT>', path]<EOL>if backing_chain:<EOL><INDENT>cmd.insert(-<NUM_LIT:1>, '<STR_LIT>')<EOL><DEDENT>result = run_command_with_validation(<EOL>cmd, fail_on_error, msg='<STR_LIT>'.format(path)<EOL>)<EOL>return json.loads(result.out)<EOL>
Get info on a given qemu disk

Args:
    path(str): Path to the required disk
    backing_chain(boo): if true, include also info about
    the image predecessors.
Return:
    object: if backing_chain == True then a list of dicts else a dict