code: def normalize_doc(docstring):
      docstring = textwrap.dedent(docstring).strip()
      docstring = docstring.encode("unicode-escape").decode("ascii")
      docstring = docstring.replace(r'"', r"\"")
      docstring = docstring.replace(r"'", r"\'")
      # Split the docstring because some compilers (like MS) do not like big
      # string literal in C code. We split at endlines because textwrap.wrap
      # do not play well with \n
      docstring = '\\n""'.join(docstring.split(r"\n"))
      return docstring
  
file_path: numpy/numpy/_core/code_generators/generate_umath_doc.py
imports: import sys
  import os
  import textwrap
  import argparse
  import ufunc_docstrings
label_desc: Use image node_id 1 for calling a global function with example usage: normalize_doc(docstring) and returns: docstring