code: def cvt_points_to_coordinates(
      points: np.ndarray,
  ) -> Tuple[float, float, float, float]:
      x_1 = points[:, 0].min()
      y_1 = points[:, 1].min()
      x_2 = points[:, 0].max()
      y_2 = points[:, 1].max()
      return (x_1, y_1, x_2, y_2)
  
file_path: layout-parser/src/layoutparser/elements/utils.py
imports: from typing import List, Union, Dict, Dict, Any, Optional, Tuple
  import numpy
  from PIL import Image
label_desc: Use image node_id 2 for calling a global function with example usage: cvt_points_to_coordinates(points) and returns: x_1,  y_1,  x_2,  y_2