class_docstr: Basic output post-processing and comparison
class_docstr_tok: ["Basic","output","post-processing","and","comparison"]
code: def __eq__(self, other):
      # Ignore constructor/destructor output which is prefixed with "###"
      a = [
          line
          for line in self.string.strip().splitlines()
          if not line.startswith("###")
      ]
      b = _strip_and_dedent(other).splitlines()
      if a == b:
          return True
      else:
          self.explanation = _make_explanation(a, b)
          return False
  
imports: import pytest
  import textwrap
  import difflib
  import re
  import sys
  import contextlib
  import platform
  import gc
label_desc: Use image node_id 3 for calling the Output obj's underlying member method code with example usage: obj.__eq__(other) and returns: True, False