code: def _ensure_type(d, type_):
      _type = d.get("type", "")
      if _type != type_:
          raise ValueError(
              "Unsupported GeoJSON type '%s'; must be '%s'"
              % (_type, type_)
          )
  
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 12 for calling a global function with example usage: _ensure_type(d, type_) without return types