(self, arch, machine)
return util.get_xml_path(self.get_dom_cap_xml(arch, machine), func=get_cpu_modes)
:param arch: architecture
        :param machine:
        :return: available cpu modes
:param arch: architecture
        :param machine:
        :return: available cpu modes
: param arch : architecture : param machine : : return : available cpu modes
def get_cpu_modes(self, arch, machine):
        """
        :param arch: architecture
        :param machine:
        :return: available cpu modes
        """

        def get_cpu_modes(ctx):
            return [v for v in ctx.xpath("/domainCapabilities/cpu/mode[@supported='yes']/@name")]

        return util.get_xml_path(self.get_dom_cap_xml(arch, machine), func=get_cpu_modes)
def get_cpu_modes ( self , arch , machine ) : def get_cpu_modes ( ctx ) : return [ v for v in ctx . xpath ( "/domainCapabilities/cpu/mode[@supported='yes']/@name" ) ] return util . get_xml_path ( self . get_dom_cap_xml ( arch , machine ) , func = get_cpu_modes )