code: def _to_geo_collection(label):
      geometries = []
  
      if label.point is not None:
          geometries.append(_make_geometry("Point", label.point))
  
      if label.line is not None:
          geometries.append(_make_geometry("LineString", label.line))
  
      if label.polygon is not None:
          geometries.append(_make_geometry("Polygon", label.polygon))
  
      return {"type": "GeometryCollection", "geometries": geometries}
  
imports: import logging
  import os
  import eta.core.serial
  import eta.core.utils
  import fiftyone.core.fields
  import fiftyone.core.labels
  from fiftyone.core.sample import Sample
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.core.validation
  import fiftyone.utils.data
label_desc: Use image node_id 8 for calling a global function with example usage: _to_geo_collection(label) and returns: dict