code: def test_point(self):
      # Test 2D points
      p = Point(1.0, 2.0)
      assert p.x == 1.0
      assert p.y == 2.0
      assert p.coords[:] == [(1.0, 2.0)]
      assert str(p) == p.wkt
      assert p.has_z is False
      with pytest.raises(DimensionError):
          p.z
  
      # Check Z-dim
      p = Point(1.0, 2.0, 3.0)
      assert p.coords[:] == [(1.0, 2.0, 3.0)]
      assert str(p) == p.wkt
      assert p.has_z is True
      assert p.z == 3.0
  
      # Coordinate access
      p = Point((3.0, 4.0))
      assert p.x == 3.0
      assert p.y == 4.0
      assert tuple(p.coords) == ((3.0, 4.0),)
      assert p.coords[0] == (3.0, 4.0)
      with pytest.raises(IndexError):  # index out of range
          p.coords[1]
  
      # Bounds
      assert p.bounds == (3.0, 4.0, 3.0, 4.0)
  
      # Geo interface
      assert p.__geo_interface__ == {
          "type": "Point",
          "coordinates": (3.0, 4.0),
      }
  
file_path: shapely/shapely/tests/geometry/test_point.py
imports: import numpy
  import pytest
  from shapely import Point
  from shapely.coords import CoordinateSequence
  from shapely.errors import DimensionError
label_desc: Use image node_id 1 for calling the TestPoint obj's underlying member method code with example usage: obj.test_point() without return types