code: def test_format_invalid():
      # check invalid spec formats
      pt = Point(1, 2)
      test_list = [
          ("5G", ValueError, "invalid format specifier"),
          (".f", ValueError, "invalid format specifier"),
          ("0.2e", ValueError, "invalid format specifier"),
          (
              ".1x",
              ValueError,
              "hex representation does not specify precision",
          ),
      ]
      for format_spec, err, match in test_list:
          with pytest.raises(err, match=match):
              format(pt, format_spec)
  
imports: import pytest
  from shapely import Point, Polygon
  from shapely.geos import geos_version
label_desc: Use image node_id 1 for calling a global function with example usage: test_format_invalid() without return types