'Returns the template which has the specified display name.'

def get_template(self, templates, display_name):

    return next((template for template in templates if (template.get('display_name') == display_name)), None)
