human
Complete the below
def _format_template_content(content, params):

    ''''Formats a template\'s content using passed in arguments'
    '''

=====
What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    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)