code: def _to_multi_geo_collection(label):
      geometries = []
  
      if label.points is not None:
          geometries.append(_make_geometry("MultiPoint", label.points))
  
      if label.lines is not None:
          geometries.append(
              _make_geometry("MultiLineString", label.lines)
          )
  
      if label.polygons is not None:
          geometries.append(
              _make_geometry("MultiPolygon", label.polygons)
          )
  
      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 9 for calling a global function with example usage: _to_multi_geo_collection(label) and returns: dict