human
Complete this python program:
def _format_template_content(content, params):
assistant
#Here is the Python program you requested.

    """Formats a template\s content using passed in arguments
    """
    def arg_replace(matchobj):
        "Takes    a    regex    matching    {{{name}}    and    returns    params['name']"
        param_name = matchobj.group(1)
        if (param_name in params):
            return params[param_name]
    return TEMPLATE_ARG_REGEX.sub(arg_replace, content)