code: def TR(s):
      """Escape necessary characters for ReST formatting"""
      if s == "":
          return '""'
  
      s = s.replace("*", "\\*")
  
      s = replace_math_symbols(s)
  
      return s
  
file_path: essentia/doc/sphinxdoc/generate_reference.py
imports: import essentia.standard
  import essentia.streaming
  import os, re, subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: TR(s) and returns: s, str