def serialize(self, items, default_flow_style=False):

        # lazy-import so there's no dependency on yaml unless this class is used
        yaml = self._load_yaml()

        # it looks like ordering can't be preserved: http://pyyaml.org/ticket/29
        items = dict(items)
        return yaml.dump(items, default_flow_style=default_flow_style)


# used while parsing args to keep track of where they came from
Does the inverse of config parsing by taking parsed values and
dataset/ETHPy150Open bw2/ConfigArgParse/configargparse.py/YAMLConfigFileParser.serialize