code: def test_custom_repr(self):
      class JSON:
          a = 1
  
          def __repr__(self):
              return "This is JSON\n{\n  'foo': 'bar'\n}"
  
      a = JSON()
      b = 2
      assert a.a == b, a
  
imports: import pytest
  from pytest import raises
label_desc: Use image node_id 3 for calling the TestCustomAssertMsg obj's underlying member method code with example usage: obj.test_custom_repr() and returns: str