def index(self, item):
        index_at = None
        for (i, child) in enumerate(self._children):
            if child.item == item:
                index_at = i
                break
        if index_at is None:
            raise ValueError("%s is not contained in any child" % (item))
        return index_at
Finds the child index of a given item, searches in added order.
dataset/ETHPy150Open openstack/taskflow/taskflow/types/tree.py/Node.index