def METHOD_NAME(self, template_params):
    """Templates the *_Instance file for the model. The templated result will
    be inserted into the final District Energy System model in order to
    instantiate/define the model instance.
    :param template_params: dict, parameters for the template
    :returns: tuple (str, str), the templated result followed by the name of the file used for templating
    """
    try:
        template = self.template_env.get_template(self._template_instance)
    except exceptions.TemplateNotFound:
        raise Exception(f"Could not find mopt template '{self._template_instance}' in {self.template_dir}")
    # get template path relative to the package
    template_filename = Path(template.filename).as_posix()
    _, template_filename = template_filename.rsplit('geojson_modelica_translator', 1)
    return template.render(template_params), template_filename