code: def test_schema_negative_indexing():
      fields = [
          pa.field("foo", pa.int32()),
          pa.field("bar", pa.string()),
          pa.field("baz", pa.list_(pa.int8())),
      ]
  
      schema = pa.schema(fields)
  
      assert schema[-1].equals(schema[2])
      assert schema[-2].equals(schema[1])
      assert schema[-3].equals(schema[0])
  
      with pytest.raises(IndexError):
          schema[-4]
  
      with pytest.raises(IndexError):
          schema[3]
  
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 25 for calling a global function with example usage: test_schema_negative_indexing() without return types