code: def remove_erhua(text):
      """
      去除儿化音词中的儿:
      他女儿在那边儿 -> 他女儿在那边
      """
  
      new_str = ""
      while re.search("儿", text):
          a = re.search("儿", text).span()
          remove_er_flag = 0
  
          if ER_WHITELIST_PATTERN.search(text):
              b = ER_WHITELIST_PATTERN.search(text).span()
              if b[0] <= a[0]:
                  remove_er_flag = 1
  
          if remove_er_flag == 0:
              new_str = new_str + text[0 : a[0]]
              text = text[a[1] :]
          else:
              new_str = new_str + text[0 : b[1]]
              text = text[b[1] :]
  
      text = new_str + text
      return text
  
imports: import argparse
  import csv
  import os
  import re
  import string
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: remove_erhua(text) and returns: text