code: def test_schema_equals_propagates_check_metadata():
      # ARROW-4088
      schema1 = pa.schema(
          [pa.field("foo", pa.int32()), pa.field("bar", pa.string())]
      )
      schema2 = pa.schema(
          [
              pa.field("foo", pa.int32()),
              pa.field("bar", pa.string(), metadata={"a": "alpha"}),
          ]
      )
      assert not schema1.equals(schema2, check_metadata=True)
      assert schema1.equals(schema2)
  
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 21 for calling a global function with example usage: test_schema_equals_propagates_check_metadata() without return types