code: def point_distance(pt1: ArrayLike, pt2: ArrayLike) -> float:
      """Calculate the distance between two points.
  
      Args:
          pt1 (ArrayLike): The first point.
          pt2 (ArrayLike): The second point.
  
      Returns:
          float: The distance between two points.
      """
      pt1 = np.array(pt1)
      pt2 = np.array(pt2)
  
      assert pt1.size == 2 and pt2.size == 2
  
      dist = np.square(pt2 - pt1).sum()
      dist = np.sqrt(dist)
      return dist
  
imports: import numpy
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 2 for calling a global function with example usage: point_distance(pt1, pt2) and returns: dist