<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_cpu_vendor(cls, family, arch='x86'):
 """ Get CPU vendor, if vendor is not available will return 'generic' Args: family(str):
 CPU family arch(str):
 CPU arch Returns: str: CPU vendor if found otherwise 'generic' """


        props = cls.get_cpu_props(family, arch)
        vendor = 'generic'
        try:
            vendor = props.xpath('vendor/@name')[0]
        except IndexError:
            pass
        return vendor