code: def points_center(points: ArrayLike) -> np.ndarray:
      """Calculate the center of a set of points.
  
      Args:
          points (ArrayLike): A set of points.
  
      Returns:
          np.ndarray: The coordinate of center point.
      """
      points = np.array(points, dtype=np.float32)
      assert points.size % 2 == 0
  
      points = points.reshape([-1, 2])
      return np.mean(points, axis=0)
  
imports: import numpy
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 1 for calling a global function with example usage: points_center(points) and returns: np