def get_server_setting(settings, server=_DEFAULT_SERVER):
    ret = dict()

    if not settings:
        _LOG.warning('No settings provided.')
        return ret

    with salt.utils.winapi.Com():
        try:
            connection = wmi.WMI(namespace=_WMI_NAMESPACE)
            objs = connection.IIsSmtpServerSetting(settings, Name=server)[0]

            for setting in settings:
                ret[setting] = str(getattr(objs, setting))
        except wmi.x_wmi as error:
            _LOG.error('Encountered WMI error: %s', error.com_error)
        except (AttributeError, IndexError) as error:
            _LOG.error('Error getting IIsSmtpServerSetting: %s', error)
    return ret
creates node_id.cumulative_split_cost as well as a dictionary self.cumulative_split_costs
dataset/ETHPy150Open saltstack/salt/salt/modules/win_smtp_server.py/get_server_setting--crossover with--dataset/ETHPy150Open balajiln/mondrianforest/src/mondrianforest.py/MondrianTree.gen_cumulative_split_costs_only