code: def concat_offsets_or_none(
      list_of_offsets_or_none: list[cpy.OffsetArray | None],
  ) -> cpy.OffsetArray | None:
      """Concatenate a list of offsets arrays or None into a single offset array or None."""
      list_of_offsets = [
          offsets
          for offsets in list_of_offsets_or_none
          if offsets is not None
      ]
      if list_of_offsets:
          return concat_offsets(list_of_offsets)
      else:
          return None
  
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 7 for calling a global function with example usage: concat_offsets_or_none(list_of_offsets_or_none) and returns: concat_offsets, None