def METHOD_NAME(result, expect_status, expect_output=None):
    """
    Check virsh metadata command
    """
    utlv.check_exit_status(result, expect_status)
    if result.exit_status == 0 and expect_output:
        expect_output = pretty_xml(expect_output)
        logging.debug("Expect metadata: %s", expect_output)
        output = result.stdout.strip()
        output = pretty_xml(output)
        logging.debug("Command get metadata: %s", output)
        if output != expect_output:
            test.fail("Metadat is not expected")