def METHOD_NAME(value_type, line, key, tmp_domjobinfo):
    """
    Compare the value of items
    :param value_type: value type, contain 'str_itmes' and 'int_items'
    :param line: one line of domjobinfo output
    :param key: one key of domjobinfo output
    :param tmp_domjobinfo: domain job info
    :return: new domain job info
    """
    if value_type in tmp_domjobinfo and key in tmp_domjobinfo[value_type]:
        tmp_value = tmp_domjobinfo[value_type].get(key)
        if value_type == "str_items":
            value = line.strip().split(':')[1].strip()
        elif value_type == "int_items":
            value = float(line.strip().split(':')[1].strip().split(' ')[0])
            tmp_value = float(tmp_value)
        else:
            raise exceptions.TestFail("Don't support '%s'" % value_type)
        if value != tmp_value:
            raise exceptions.TestFail("'%s' is not matched expect '%s'" %
                                      (value, tmp_value))
        else:
            del tmp_domjobinfo[value_type][key]
    return tmp_domjobinfo