def _get_or_new_panda(self, name):
        if name not in self.dictionary:
            panda = {self.MONK_TYPE: 'ExistPanda',
                     self.NAME: name,
                     self.CREATOR: self.creator}
            panda = crane.pandaStore.load_or_create(panda, tosave=True)
            self.add_panda(panda)
            self.dictionary[name] = panda.uid
            uid = panda.uid
        else:
            uid = self.dictionary[name]
        return (uid, 1.0)
dataset/ETHPy150Open xumiao/pymonk/monk/core/turtle.py/DictionaryTurtle._get_or_new_panda/original