code: def test_undecodable_metadata():
      # ARROW-10214: undecodable metadata shouldn't fail repr()
      data1 = b"abcdef\xff\x00"
      data2 = b"ghijkl\xff\x00"
      schema = pa.schema(
          [pa.field("ints", pa.int16(), metadata={"key": data1})],
          metadata={"key": data2},
      )
      assert "abcdef" in str(schema)
      assert "ghijkl" in str(schema)
  
imports: from collections import OrderedDict
  import sys
  import weakref
  import pytest
  import numpy
  import pyarrow
  import pyarrow.tests.util
  from pyarrow.vendored.version import Version
label_desc: Use image node_id 32 for calling a global function with example usage: test_undecodable_metadata() without return types