

def _get_path_parts(path):
    parts = []
    while True:
        (newpath, tail) = split(tail)
        parts.append(tail)
        path = newpath
        if (tail == 'examples'):
            break
    parts.reverse()
    return parts

dataset/ETHPy150Open bokeh/bokeh/tests/examples/test_examples.py _get_path_parts/VarMisuse@28/34 `path`->`tail`