code: def check_heap_repr(gdb, expr, expected):
      """
      Check printing a heap-located value, given its address.
      """
      s = gdb.print_value(f"*{expr}")
      # GDB may prefix the value with an address or type specification
      if s != expected:
          assert s.endswith(f" {expected}")
  
imports: from functools import lru_cache
  import os
  import re
  import shutil
  import subprocess
  import sys
  import pytest
  import pyarrow
label_desc: Use image node_id 11 for calling a global function with example usage: check_heap_repr(gdb, expr, expected) without return types