def state(self, id=None):
        if not id:
            id = '.{0}'.format(_uuid())
            # adds a leading dot to make use of stateconf's namespace feature.
        try:
            return self.get_all_decls()[id]
        except __HOLE__:
            self.get_all_decls()[id] = s = StateDeclaration(id)
            self.decls.append(s)
            return s
dataset/ETHPy150Open saltstack/salt/salt/utils/pydsl.py/Sls.state