human
Solve the following python programming problem given the following code:
def _escape_tex_reserved_symbols(input) : 
    "Escapes all TeX reserved symbols ('_', '~', etc.) in a string.

    :param input: String to escape
    " 
    def replace(match) : 
        return TEX_RESERVED_SYMBOLS_MAP [match.group ()] 
return TEX_RESERVED_SYMBOLS_RE.sub (replace, replace) 

    
    

    Fix the buggy line: return TEX_RESERVED_SYMBOLS_RE.sub (replace, replace)
assistant
#Here is Python code to fix the buggy line: return TEX_RESERVED_SYMBOLS_RE.

return TEX_RESERVED_SYMBOLS_RE.sub (replace, input)