code: def test_metadata(gdb_arrow):
      check_heap_repr(
          gdb_arrow,
          "empty_metadata.get()",
          "arrow::KeyValueMetadata of size 0",
      )
      check_heap_repr(
          gdb_arrow,
          "metadata.get()",
          (
              "arrow::KeyValueMetadata of size 2 = {"
              '["key_text"] = "some value", ["key_binary"] = "z\\000\\037\\377"}'
          ),
      )
  
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 16 for calling a global function with example usage: test_metadata(gdb_arrow) without return types