Расскажи что делает код
    def check_qos_sap_ineg(config, result, iptv=False):
        qqq = '(?:                entry \S+ create.*?\n                exit)|(?:\(                entry \S+ create.*?\n                exit\)\?)|(?:            fc \S+ create.*?\n            exit)|(?:            policer \d+ create.*?\n            exit)|(?:            queue \d+ (?:profile-mode |multipoint )?create.*?\n            exit)'
        qos_sap_list = const.ALU_NEWQOS_SAP
        # int(qos_sap_list)

        errnumb = 113004
        # qos_sap_list = const.ALU_QOS600_SAP
        # errnumb = 130014
        # if not iptv:
        #    return result
        if iptv:
            qos_sap_list = const.ALU_QOS600_SAP
            errnumb = 130014

        for qos_sap in qos_sap_list:
            if not re.search(qos_sap[0], config, re.MULTILINE | re.DOTALL):
                f = False
                qos = qos_sap[0].split("\n")

                # kostyl' for MSA-6040
                if qos_sap[1] == 'qos 300 ingress':
                    qos_full = qos_sap[0]
                    re_to_exception = re.compile('(^(?P<space>\s+)entry\s+5\d\d\s+create.*?^(?P=space)exit\n)',
                                                 re.MULTILINE | re.DOTALL)
                    strs_to_exception = re_to_exception.finditer(qos_sap[0])
                    if strs_to_exception != []:
                        for str_to_exception in strs_to_exception:
                            qos_full = qos_full.replace(
                                str_to_exception.group(0), '')
                    qos = qos_full.split("\n")
                    re_qos = '^(%s.+?\n%s)$' % (qos[0], qos[len(qos) - 1])
                    try:
                        cfg_qos_new = (
                            re.search(re_qos, config, re.MULTILINE | re.DOTALL)).group(0)
                        strs_to_exception_cfg = re_to_exception.finditer(
                            cfg_qos_new)
                        if strs_to_exception_cfg != []:
                            for str_to_exception in strs_to_exception_cfg:
                                cfg_qos_new = cfg_qos_new.replace(
                                    str_to_exception.group(0), '')
                        cfg_qos = [cfg_qos_new]
                    except:
                        cfg_qos = False
                    if not cfg_qos:
                        cfg_qos = ['']
                    r = cmp_str_regexp(qos_full, cfg_qos[0], qqq)
                    r_1 = cmp_str_regexp(cfg_qos[0], qos_full, qqq, True)
                else:
                    qos = qos_sap[0].split("\n")
                    re_qos = '^(%s.+?\n%s)$' % (qos[0], qos[len(qos) - 1])
                    cfg_qos = re.findall(
                        re_qos, config, re.MULTILINE | re.DOTALL)
                    if not cfg_qos:
                        cfg_qos = ['']
                    r = cmp_str_regexp(qos_sap[0], cfg_qos[0], qqq)
                    r_1 = cmp_str_regexp(cfg_qos[0], qos_sap[0], qqq, True)

                result = liboba.get_war_count(
                    CHK_WRNG_CNST_ALU, errnumb, result)
                if r:
                    result = liboba.get_war_desc(CHK_WRNG_CNST_ALU, errnumb,
                                                 "%s %s has't %s kb" % (mgmt.name, qos_sap[1], r), result)
                    f = True
                r = cmp_str_regexp(cfg_qos[0], qos_sap[0], qqq, True)
                result = liboba.get_war_count(
                    CHK_WRNG_CNST_ALU, errnumb, result)
                if r:
                    result = liboba.get_war_desc(CHK_WRNG_CNST_ALU, errnumb,
                                                 "%s has %s not kb 11" % (qos_sap[1], r), result)
                    f = True
                result = liboba.get_war_count(
                    CHK_WRNG_CNST_ALU, errnumb, result)
                if not f:
                    result = liboba.get_war_desc(CHK_WRNG_CNST_ALU, errnumb, "%s not kb" % (qos_sap[1]),
                                                 result)
        return result