code: def test_geometrycollection(self):
      p1 = geojson.Point((-115.11, 37.11))
      p2 = geojson.Point((-115.22, 37.22))
      ln = geojson.LineString(
          [(-115.3, 37.3), (-115.4, 37.4), (-115.5, 37.5)]
      )
      g = geojson.MultiPolygon(
          [
              (
                  [
                      (3.78, 9.28),
                      (-130.91, 1.52),
                      (35.12, 72.234),
                      (3.78, 9.28),
                  ],
              ),
              (
                  [
                      (23.18, -34.29),
                      (-1.31, -4.61),
                      (3.41, 77.91),
                      (23.18, -34.29),
                  ],
              ),
          ]
      )
      itr = coords(geojson.GeometryCollection([p1, p2, ln, g]))
      pairs = set(itr)
      self.assertEqual(
          pairs,
          {
              (-115.11, 37.11),
              (-115.22, 37.22),
              (-115.3, 37.3),
              (-115.4, 37.4),
              (-115.5, 37.5),
              (3.78, 9.28),
              (-130.91, 1.52),
              (35.12, 72.234),
              (3.78, 9.28),
              (23.18, -34.29),
              (-1.31, -4.61),
              (3.41, 77.91),
              (23.18, -34.29),
          },
      )
  
file_path: geojson/tests/test_coords.py
imports: import unittest
  import geojson
  from geojson.utils import coords, map_coords
label_desc: Use image node_id 7 for calling the CoordsTestCase obj's underlying member method code with example usage: obj.test_geometrycollection() without return types