code: def test_relate_pattern():
      g = shapely.linestrings([(0, 0), (1, 0), (1, 1)])
      polygon = shapely.box(0, 0, 2, 2)
      assert shapely.relate(g, polygon) == "11F00F212"
      assert shapely.relate_pattern(g, polygon, "11F00F212")
      assert shapely.relate_pattern(g, polygon, "*********")
      assert not shapely.relate_pattern(g, polygon, "F********")
  
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 22 for calling a global function with example usage: test_relate_pattern() without return types