code: def outer_offsets_from_list_of_offsets(
      list_of_offsets: list[cpy.OffsetArray],
  ) -> cpy.OffsetArray:
      """Determine outer offsets from a list of offsets."""
      if not list_of_offsets:
          raise ValueError(
              "Empty list passed to outer_offsets_from_list_of_offsets"
          )
  
      return np.cumsum(
          [0] + [len(offsets) - 1 for offsets in list_of_offsets],
          dtype=offset_dtype,
      )
  
imports: from __future__ import annotations
  from itertools import chain
  from typing import TYPE_CHECKING
  import numpy
  from contourpy.typecheck import check_code_array, check_offset_array, check_point_array
  from contourpy.types import CLOSEPOLY, LINETO, MOVETO, code_dtype, offset_dtype, point_dtype
label_desc: Use image node_id 16 for calling a global function with example usage: outer_offsets_from_list_of_offsets(list_of_offsets) and returns: np