<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_templates():
 """Returns a list of all templates."""

    templates = [f for f in glob.glob(os.path.join(template_path, '*.yaml'))]
    return templates