<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render_engine_or_search_template(template_name, **context):
 """Renders a template from the engine plugin or the search plugin If the template is available in the engine plugin, it's taken from there, otherwise the template from this plugin is used. :param template_name: name of the template :param context: the variables that should be available in the context of the template. """

    from indico_search.plugin import SearchPlugin
    assert current_plugin == SearchPlugin.instance

    templates = ('{}:{}'.format(SearchPlugin.instance.engine_plugin.name, template_name),
                 template_name)
    return render_plugin_template(templates, **context)