code: def concat_points(
      list_of_points: list[cpy.PointArray],
  ) -> cpy.PointArray:
      """Concatenate a list of point arrays into a single point array."""
      if not list_of_points:
          raise ValueError("Empty list passed to concat_points")
  
      return np.concatenate(list_of_points, dtype=point_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 8 for calling a global function with example usage: concat_points(list_of_points) and returns: np