<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_path):
 """ Get template object from absolute path. For example, the template has: .. code-block:: html {% macro add(a, b) -%} {{a + b}} {%- endmacro %} And call the macro as template object method. .. code-block:: python tpl = get_template('template.tpl') print(tpl.add(1, 2)) :param template_path: template absolute path. :return: template object """

    folder, fname = os.path.split(template_path)
    return create_env_by_folder(folder).get_template(fname)