code: def strip_newsgroup_quoting(text):
      """
      Given text in "news" format, strip lines beginning with the quote
      characters > or |, plus lines that often introduce a quoted section
      (for example, because they contain the string 'writes:'.)
      """
      good_lines = [
          line
          for line in text.split("\n")
          if not _QUOTE_RE.search(line)
      ]
      return "\n".join(good_lines)
  
imports: import os
  import logging
  import tarfile
  import pickle
  import shutil
  import re
  import codecs
  import numpy
  import scipy.sparse
  from .base import get_data_home
  from .base import Bunch
  from .base import load_files
  from .base import _pkl_filepath
  from ..utils import check_random_state
  from ..feature_extraction.text import CountVectorizer
  from ..preprocessing import normalize
  from ..externals import joblib, six
label_desc: Use image node_id 3 for calling a global function with example usage: strip_newsgroup_quoting(text) and returns: str