code: def geo_within(location_field, boundary, strict=True):
      """Creates a MongoDB query expression that tests whether the given location
      field is contained within the specified boundary shape.
  
      Args:
          location_field: the embedded field containing GeoJSON data
          boundary: a :class:`fiftyone.core.labels.GeoLocation`,
              :class:`fiftyone.core.labels.GeoLocations`, GeoJSON dict, or
              list of coordinates that define a ``Polygon`` or
              ``MultiPolygon`` to search within
          strict (True): whether documents must exist entirely within (True)
              or intersect (False) the boundary
  
      Returns:
          a MongoDB query dict
      """
      op = "$geoWithin" if strict else "$geoIntersects"
      boundary = parse_polygon(boundary)
      return {location_field: {op: {"$geometry": boundary}}}
  
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 5 for calling a global function with example usage: geo_within(location_field, boundary, strict) and returns: dict