function writeGeometry(geometry, options) {
  const geometryWriter = GEOMETRY_WRITERS[geometry.getType()];
  return geometryWriter(
    transformGeometryWithOptions(geometry, true, options),
    options,
  );
}
@param {import("../geom/Geometry.js").default} geometry Geometry.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {EsriJSONGeometry} EsriJSON geometry.