<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_template(template):
 """Read the given template file."""

    with open(os.path.join(template_dir, template) + template_ext, "r") as template_file:
        return template_file.read()