code: def test_is_closed(geometry, expected):
      assert shapely.is_closed(geometry) == expected
  
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 19 for calling a global function with example usage: test_is_closed(geometry, expected) without return types