code: def test_from_geojson(geometrycollection_geojson):
      geom = shape(geometrycollection_geojson)
      assert geom.geom_type == "GeometryCollection"
      assert len(geom.geoms) == 2
  
      geom_types = [g.geom_type for g in geom.geoms]
      assert "Point" in geom_types
      assert "LineString" in geom_types
  
file_path: shapely/shapely/tests/geometry/test_collection.py
imports: import numpy
  import pytest
  from shapely import GeometryCollection, LineString, Point, wkt
  from shapely.geometry import shape
label_desc: Use image node_id 5 for calling a global function with example usage: test_from_geojson(geometrycollection_geojson) without return types