code: def test_relate_pattern_non_scalar():
      with pytest.raises(ValueError, match="only supports scalar"):
          shapely.relate_pattern(
              [point] * 2, polygon, ["*********"] * 2
          )
  
imports: from functools import partial
  import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, Point
  from shapely.tests.common import all_types, all_types_z, empty, geometry_collection, ignore_invalid, line_string, linear_ring, point, polygon
label_desc: Use image node_id 27 for calling a global function with example usage: test_relate_pattern_non_scalar() without return types