code: def _filled_to_coords(
      filled: FillReturn_OuterOffset,
  ) -> SingleFillCoords:
      # Processes polygon data returned from a single call to
      # contourpy.ContourGenerator.filled(lower_level, upper_level)
      # ContourPy filled data format is FillType.OuterOffset.
      xs = []
      ys = []
      for points, offsets in zip(*filled):
          # Polygon with outer boundary and zero or more holes.
          n = len(offsets) - 1
          xs.append(
              [points[offsets[i] : offsets[i + 1], 0] for i in range(n)]
          )
          ys.append(
              [points[offsets[i] : offsets[i + 1], 1] for i in range(n)]
          )
      return SingleFillCoords(xs, ys)
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Sequence, Union, cast
  import numpy
  from ..core.property_mixins import FillProps, HatchProps, LineProps
  from ..models.glyphs import MultiLine, MultiPolygons
  from ..models.renderers import ContourRenderer, GlyphRenderer
  from ..models.sources import ColumnDataSource
  from ..palettes import interp_palette
  from ..plotting._renderer import _process_sequence_literals
  from ..util.dataclasses import dataclass, entries
label_desc: Use image node_id 5 for calling a global function with example usage: _filled_to_coords(filled) and returns: SingleFillCoords