code: def uni2str(unicode_str):
      return (
          str(unicode_str.encode("ascii", "ignore"))
          .replace("\n", "")
          .strip()
      )
  
file_path: dgl/examples/pytorch/NGCF/NGCF/utility/helper.py
imports: import os
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: uni2str(unicode_str) and returns: str