code: def test_operations(self):
      point = Point(0.0, 0.0)
  
      # General geometry
      assert point.area == 0.0
      assert point.length == 0.0
      assert point.distance(Point(-1.0, -1.0)) == pytest.approx(
          1.4142135623730951
      )
  
      # Topology operations
  
      # Envelope
      assert isinstance(point.envelope, Point)
  
      # Intersection
      assert point.intersection(Point(-1, -1)).is_empty
  
      # Buffer
      assert isinstance(point.buffer(10.0), Polygon)
      assert isinstance(point.buffer(10.0, 32), Polygon)
  
      # Simplify
      p = loads(
          "POLYGON ((120 120, 140 199, 160 200, 180 199, 220 120, 122 122, 121 121, 120 120))"
      )
      expected = loads(
          "POLYGON ((120 120, 140 199, 160 200, 180 199, 220 120, 120 120))"
      )
      s = p.simplify(10.0, preserve_topology=False)
      assert s.equals_exact(expected, 0.001)
  
      p = loads(
          "POLYGON ((80 200, 240 200, 240 60, 80 60, 80 200),"
          "(120 120, 220 120, 180 199, 160 200, 140 199, 120 120))"
      )
      expected = loads(
          "POLYGON ((80 200, 240 200, 240 60, 80 60, 80 200),"
          "(120 120, 220 120, 180 199, 160 200, 140 199, 120 120))"
      )
      s = p.simplify(10.0, preserve_topology=True)
      assert s.equals_exact(expected, 0.001)
  
      # Convex Hull
      assert isinstance(point.convex_hull, Point)
  
      # Differences
      assert isinstance(point.difference(Point(-1, 1)), Point)
  
      assert isinstance(
          point.symmetric_difference(Point(-1, 1)), MultiPoint
      )
  
      # Boundary
      assert isinstance(point.boundary, GeometryCollection)
  
      # Union
      assert isinstance(point.union(Point(-1, 1)), MultiPoint)
  
      assert isinstance(point.representative_point(), Point)
      assert isinstance(point.point_on_surface(), Point)
      assert point.representative_point() == point.point_on_surface()
  
      assert isinstance(point.centroid, Point)
  
file_path: shapely/shapely/tests/legacy/test_operations.py
imports: import unittest
  import pytest
  import shapely
  from shapely.errors import TopologicalError
  from shapely.geometry import GeometryCollection, LineString, MultiPoint, Point, Polygon
  from shapely.wkt import loads
label_desc: Use image node_id 1 for calling the OperationsTestCase obj's underlying member method code with example usage: obj.test_operations() without return types