code: def pytest_assertrepr_compare(op, left, right):
      """Hook to insert custom failure explanation"""
      if hasattr(left, "explanation"):
          return left.explanation
  
imports: import pytest
  import textwrap
  import difflib
  import re
  import sys
  import contextlib
  import platform
  import gc
label_desc: Use image node_id 10 for calling a global function with example usage: pytest_assertrepr_compare(op, left, right) and returns: left