code: def emit(self, text_gen, margin_char=None):
      if margin_char is None:
          margin_char = "|"
      indent_str = self.indent()
      if self.exception_group_depth:
          indent_str += margin_char + " "
  
      if isinstance(text_gen, str):
          yield textwrap.indent(text_gen, indent_str, lambda line: True)
      else:
          for text in text_gen:
              yield textwrap.indent(text, indent_str, lambda line: True)
  
imports: import collections.abc
  import itertools
  import linecache
  import sys
  import textwrap
  from contextlib import suppress
label_desc: Use image node_id 3 for calling the _ExceptionPrintContext obj's underlying member method code with example usage: obj.emit(text_gen, margin_char) without return types