def parameterize(path):
    def fparam(p):
        if p.startswith('<') and p.endswith('>'):
            _, _, parameter = p.strip('<>').rpartition(':')
            return '{%s}' % (parameter,)
        return p
    return '/'.join(map(fparam, path.split('/')))
Test spatio-temporal connectivity from triangles
dataset/ETHPy150Open martinp/flask-swagger/flask_swagger/__init__.py/parameterize--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_source_estimate.py/test_spatio_temporal_tris_connectivity