Path template
To get tempalte path from name you can use this example:
py
import json
import sgtk
engine = sgtk.platform.current_engine()
tk = engine.sgtk
sg = engine.shotgun
current_context = engine.context
template = tk.templates.get('<TEMPLATE_NAME>', '')
final_path = template.apply_fields(<DICT_TEMPLATE_DATA>);
print(final_path)