code: def test_schema_equals_invalid_type():
      # ARROW-5873
      schema = pa.schema([pa.field("a", pa.int64())])
  
      for val in [None, "string", pa.array([1, 2])]:
          with pytest.raises(TypeError):
              schema.equals(val)
  
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 22 for calling a global function with example usage: test_schema_equals_invalid_type() without return types