code: def test_zero_width():
      # special case of all points on the same line -> avoid warnings because
      # of division by 0 and introducing NaN
      s = geopandas.GeoSeries([Point(0, 0), Point(0, 2), Point(0, 1)])
      with np.errstate(all="raise"):
          result = s.hilbert_distance()
      assert np.array(result).argsort().tolist() == [0, 2, 1]
  
file_path: geopandas/geopandas/tools/tests/test_hilbert_curve.py
imports: import numpy
  from shapely.geometry import Point
  from shapely.wkt import loads
  import geopandas
  import pytest
  from pandas.testing import assert_series_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_zero_width() without return types