code: def test_unpickle_pre_20(fname):
      from shapely.testing import assert_geometries_equal
  
      geom_type = fname.name.split("_")[0]
      expected = TEST_DATA[geom_type]
  
      with open(fname, "rb") as f:
          with pytest.warns(UserWarning):
              result = pickle.load(f)
  
      assert_geometries_equal(result, expected)
  
file_path: shapely/shapely/tests/legacy/test_pickle.py
imports: import pathlib
  import pickle
  import warnings
  from pickle import dumps, HIGHEST_PROTOCOL, loads
  import pytest
  import shapely
  from shapely import wkt
  from shapely.geometry import box, GeometryCollection, LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
label_desc: Use image node_id 2 for calling a global function with example usage: test_unpickle_pre_20(fname) without return types