code: def cleanup(txt):
      return (
          txt.strip()
          .replace("|", "__PIPE__")
          .replace("\\n", "__NEWLINE__")
      )
  
file_path: ParlAI/parlai/tasks/ms_marco/build.py
imports: import gzip
  import json
  import os
  import tqdm
  import parlai.core.build_data
  from parlai.utils.io import PathManager
  from parlai.core.build_data import DownloadableFile
label_desc: Use image node_id 3 for calling a global function with example usage: cleanup(txt) and returns: txt