code: def normalize_name(name):
      replacements = [
          ("\\", "\\\\"),
          ("\n", "\\n"),
          ("\t", "\\t"),
          ("\r", "\\r"),
      ]
      for from_, to in replacements:
          name = name.replace(from_, to)
      return name
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 7 for calling a global function with example usage: normalize_name(name) and returns: name