def _convert(template, params=None):
    """URI template converter"""
    if params is None:
        params = []
    paths = template % dict([p, "{%s}" % p] for p in params)
    return u'/api%s%s' % (get_script_prefix(), paths)
dataset/ETHPy150Open treeio/treeio/treeio/core/api/doc.py/_convert/original