def setContainerDataSource(self, newDataSource):
        if newDataSource is None:
            # Note: using wrapped IndexedContainer to match constructor
            # (super creates an IndexedContainer, which is then wrapped).
            newDataSource = ContainerHierarchicalWrapper(IndexedContainer())

        # Assure that the data source is ordered by making unordered
        # containers ordered by wrapping them
        if issubclass(newDataSource.__class__, container.IHierarchical):
            super(Tree, self).setContainerDataSource(newDataSource)
        else:
            super(Tree, self).setContainerDataSource(
                ContainerHierarchicalWrapper(newDataSource))
Return the resource corresponding to all segments
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tree.py/Tree.setContainerDataSource--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/googleanalytics/management.py/Management.segments