def index_to_url(index):
    """Construct a relative hyperlink to a tree node given its path."""
    if index:
        return '%s.html' % '.'.join(index)
    return 'index.html'
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/test/coveragereport.py/index_to_url/original