code: def test_multipoint(self):
      # From coordinate tuples
      geom = MultiPoint([(1.0, 2.0), (3.0, 4.0)])
      assert len(geom.geoms) == 2
      assert dump_coords(geom) == [[(1.0, 2.0)], [(3.0, 4.0)]]
  
      # From points
      geom = MultiPoint([Point(1.0, 2.0), Point(3.0, 4.0)])
      assert len(geom.geoms) == 2
      assert dump_coords(geom) == [[(1.0, 2.0)], [(3.0, 4.0)]]
  
      # From another multi-point
      geom2 = MultiPoint(geom)
      assert len(geom2.geoms) == 2
      assert dump_coords(geom2) == [[(1.0, 2.0)], [(3.0, 4.0)]]
  
      # Sub-geometry Access
      assert isinstance(geom.geoms[0], Point)
      assert geom.geoms[0].x == 1.0
      assert geom.geoms[0].y == 2.0
      with pytest.raises(IndexError):  # index out of range
          geom.geoms[2]
  
      # Geo interface
      assert geom.__geo_interface__ == {
          "type": "MultiPoint",
          "coordinates": ((1.0, 2.0), (3.0, 4.0)),
      }
  
file_path: shapely/shapely/tests/geometry/test_multipoint.py
imports: import numpy
  import pytest
  from shapely import MultiPoint, Point
  from shapely.errors import EmptyPartError
  from shapely.geometry.base import dump_coords
  from shapely.tests.geometry.test_multi import MultiGeometryTestCase
label_desc: Use image node_id 1 for calling the TestMultiPoint obj's underlying member method code with example usage: obj.test_multipoint() without return types