code: def strip_email_quotes(text):
      """Strip leading email quotation characters ('>').
  
      Removes any combination of leading '>' interspersed with whitespace that
      appears *identically* in all lines of the input text.
  
      Parameters
      ----------
      text : str
  
      Examples
      --------
  
      Simple uses::
  
          In [2]: strip_email_quotes('> > text')
          Out[2]: 'text'
  
          In [3]: strip_email_quotes('> > text\\n> > more')
          Out[3]: 'text\\nmore'
  
      Note how only the common prefix that appears in all lines is stripped::
  
          In [4]: strip_email_quotes('> > text\\n> > more\\n> more...')
          Out[4]: '> text\\n> more\\nmore...'
  
      So if any line has no quote marks ('>'), then none are stripped from any
      of them ::
  
          In [5]: strip_email_quotes('> > text\\n> > more\\nlast different')
          Out[5]: '> > text\\n> > more\\nlast different'
      """
      lines = text.splitlines()
      strip_len = 0
  
      for characters in zip(*lines):
          # Check if all characters in this position are the same
          if len(set(characters)) > 1:
              break
          prefix_char = characters[0]
  
          if prefix_char in string.whitespace or prefix_char == ">":
              strip_len += 1
          else:
              break
  
      text = "\n".join([ln[strip_len:] for ln in lines])
      return text
  
imports: import os
  import re
  import string
  import sys
  import textwrap
  import warnings
  from string import Formatter
  from pathlib import Path
  from typing import List, Union, Optional, Dict, Tuple
label_desc: Use image node_id 8 for calling a global function with example usage: strip_email_quotes(text) and returns: text