code: def filter_quotes(
      text: str,
      *,
      is_email: bool = True,
  ) -> typing.List[str]:
      """
      Filter the quoted text out of an email message.
      This handles quoting methods for popular email systems.
  
          text:
      raw text data
  
          is_email:
      flag for whether the text comes from an email message;
      defaults to `True`
  
          returns:
      the filtered text representing as a list of lines
      """
      _PAT_FORWARD = re.compile(r"\n-+ Forwarded message -+\n")
      _PAT_REPLIED = re.compile(r"\nOn.*\d+.*\n?wrote\:\n+\>")
      _PAT_UNSUBSC = re.compile(
          r"\n-+\nTo unsubscribe,.*\nFor additional commands,.*"
      )
  
      if is_email:
          text = str(filter(lambda x: x in string.printable, text))
  
          # strip off quoted text in a forward
          m = _PAT_FORWARD.split(text, re.M)
  
          if m and len(m) > 1:
              text = m[0]
  
          # strip off quoted text in a reply
          m = _PAT_REPLIED.split(text, re.M)
  
          if m and len(m) > 1:
              text = m[0]
  
          # strip off any trailing unsubscription notice
          m = _PAT_UNSUBSC.split(text, re.M)
  
          if m:
              text = m[0]
  
      # replace any remaining quoted text with blank lines
      lines: typing.List[str] = []
  
      for line in text.split("\n"):
          if line.startswith(">"):
              lines.append("")
          else:
              lines.append(line)
  
      return list(split_grafs(lines))
  
file_path: pytextrank/pytextrank/util.py
imports: import itertools
  import re
  import string
  import typing
  import unicodedata
  from spacy.tokens import Span
label_desc: Use image node_id 5 for calling a global function with example usage: filter_quotes(text) and returns: list