code: def test_format_point(
      format_spec, coords, expt_wkt, same_python_float
  ):
      pt = Point(*coords)
      # basic checks
      assert f"{pt}" == pt.wkt
      assert format(pt, "") == pt.wkt
      assert format(pt, "x") == pt.wkb_hex.lower()
      assert format(pt, "X") == pt.wkb_hex
      # check formatted WKT to expected
      assert format(pt, format_spec) == expt_wkt, format_spec
      # check Python's format consistency
      text_coords = expt_wkt[
          expt_wkt.index("(") + 1 : expt_wkt.index(")")
      ]
      is_same = []
      for coord, expt_coord in zip(coords, text_coords.split()):
          py_fmt_float = format(float(coord), format_spec)
          if same_python_float:
              assert py_fmt_float == expt_coord, format_spec
          else:
              is_same.append(py_fmt_float == expt_coord)
      if not same_python_float:
          assert not all(is_same), f"{format_spec!r} with {expt_wkt}"
  
imports: import pytest
  from shapely import Point, Polygon
  from shapely.geos import geos_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_format_point(format_spec, coords, expt_wkt, same_python_float) without return types