def __repr__(self):
        if 'title' in self.properties:
            ret = "<NodeData id={!r}, title='{!s}'>"
            return ret.format(self.id, self.properties['title'])
        else:
            ret = '<NodeData id={!r}>'
            return ret.format(self.id, self.parent)
dataset/ETHPy150Open conceptsandtraining/libtree/libtree/core/node_data.py/NodeData.__repr__/original