<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_by_name(name, engines=None):
 """ Find a template engine class specified by its name `name`. :param name: Template name :param engines: Template engines :return: A template engine or None if no any template engine of given name were found. """

    if engines is None:
        engines = ENGINES

    for egn in engines:
        if egn.name() == name:
            return egn

    return None