code: def test_repr_linearring():
      # https://github.com/geopandas/geopandas/pull/2689
      # specifically, checking internal shapely/wkt/wkb conversions
      # preserve LinearRing
      s = GeoSeries([LinearRing([(0, 0), (1, 1), (1, -1)])])
      assert "LINEARRING" in str(s.iloc[0])  # shapely scalar repr
      assert "LINEARRING" in str(s)  # GeoSeries repr
  
      # check something coercible to linearring is not converted
      s2 = GeoSeries(
          [
              LineString([(0, 0), (1, 1), (1, -1)]),
              LineString([(0, 0), (1, 1), (1, -1), (0, 0)]),
          ]
      )
      assert "LINEARRING" not in str(s2)
  
imports: import os
  from packaging.version import Version
  import warnings
  import numpy
  from numpy.testing import assert_array_equal
  import pandas
  import shapely
  from shapely.geometry import Point, GeometryCollection, LineString, LinearRing
  import geopandas
  from geopandas import GeoDataFrame, GeoSeries
  import geopandas._compat
  from geopandas.array import from_shapely
  from geopandas.testing import assert_geodataframe_equal, assert_geoseries_equal
  from pandas.testing import assert_frame_equal, assert_series_equal
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_repr_linearring() without return types