code: def test_schema_sizeof():
      schema = pa.schema(
          [
              pa.field("foo", pa.int32()),
              pa.field("bar", pa.string()),
          ]
      )
  
      assert sys.getsizeof(schema) > 30
  
      schema2 = schema.with_metadata({"key": "some metadata"})
      assert sys.getsizeof(schema2) > sys.getsizeof(schema)
      schema3 = schema.with_metadata({"key": "some more metadata"})
      assert sys.getsizeof(schema3) > sys.getsizeof(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 30 for calling a global function with example usage: test_schema_sizeof() without return types