<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def release_docs_side_effect(content):
 """Updates the template so that curly braces are escaped correctly. Args: content (str):
 The template for ``docs/index.rst.release.template``. Returns: str: The updated template with properly escaped curly braces. """

    # First replace **all** curly braces.
    result = content.replace("{", "{{").replace("}", "}}")
    # Then reset the actual template arguments.
    result = result.replace("{{version}}", "{version}")
    result = result.replace("{{circleci_build}}", "{circleci_build}")
    result = result.replace("{{travis_build}}", "{travis_build}")
    result = result.replace("{{appveyor_build}}", "{appveyor_build}")
    result = result.replace("{{coveralls_build}}", "{coveralls_build}")
    return result