code: def test_comparison_notimplemented(geom):
      # comparing to a non-geometry class should return NotImplemented in __eq__
      # to ensure proper delegation to other (eg to ensure comparison of scalar
      # with array works)
      # https://github.com/shapely/shapely/issues/1056
      assert geom.__eq__(1) is NotImplemented
  
      # with array
      arr = np.array([geom, geom], dtype=object)
  
      result = arr == geom
      assert isinstance(result, np.ndarray)
      assert result.all()
  
      result = geom == arr
      assert isinstance(result, np.ndarray)
      assert result.all()
  
      result = arr != geom
      assert isinstance(result, np.ndarray)
      assert not result.any()
  
      result = geom != arr
      assert isinstance(result, np.ndarray)
      assert not result.any()
  
file_path: shapely/shapely/tests/geometry/test_equality.py
imports: import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, MultiLineString, Point, Polygon
  from shapely.tests.common import all_types, all_types_z, empty_point, ignore_invalid
label_desc: Use image node_id 10 for calling a global function with example usage: test_comparison_notimplemented(geom) without return types