code: def raw_string_braces(event: KeyPressEvent):
      """Auto-close braces in raw strings"""
      matches = re.match(
          r".*(r|R)[\"'](-*)",
          event.current_buffer.document.current_line_before_cursor,
      )
      dashes = matches.group(2) if matches else ""
      event.current_buffer.insert_text("{}" + dashes)
      event.current_buffer.cursor_left(len(dashes) + 1)
  
file_path: catboost/contrib/python/ipython/py3/IPython/terminal/shortcuts/auto_match.py
imports: import re
  from prompt_toolkit.key_binding import KeyPressEvent
label_desc: Use image node_id 10 for calling a global function with example usage: raw_string_braces(event) without return types