def as_dict(self, flat=False):
        if not flat:
            return self.as_dict_nested()
        else:
            return self.as_dict_flat()
Return the AttrDict as a pure dict (with nested dicts if
dataset/ETHPy150Open calliope-project/calliope/calliope/utils.py/AttrDict.as_dict