def _getPreludeSegments(self, testID):
        segments = testID.split('.')[:-1]
        if len(segments) == 0:
            return segments
        segments = [
            seg for seg in ('.'.join(segments[:-1]), segments[-1])
            if len(seg) > 0]
        return segments
Return a list of all non-leaf segments to display in the tree.
dataset/ETHPy150Open twisted/twisted/twisted/trial/reporter.py/TreeReporter._getPreludeSegments