code: def dump(obj):
      # helper function to dump memory contents in hex, with a hyphen
      # between the bytes.
      h = binascii.hexlify(memoryview(obj)).decode()
      return re.sub(r"(..)", r"\1-", h)[:-1]
  
file_path: cpython/Lib/test/test_ctypes/test_array_in_pointer.py
imports: import binascii
  import re
  import unittest
  from ctypes import c_byte, Structure, POINTER, cast
label_desc: Use image node_id 1 for calling a global function with example usage: dump(obj) and returns: re