code: def combine_line(line):
      """Combine a set of boxes in a line into a single bounding
      box.
  
      Args:
          line: A list of (box, character) entries
  
      Returns:
          A (box, text) tuple
      """
      text = "".join(
          [
              character if character is not None else ""
              for _, character in line
          ]
      )
      box = np.concatenate(
          [coords[:2] for coords, _ in line]
          + [
              np.array([coords[3], coords[2]])
              for coords, _ in reversed(line)
          ]
      ).astype("float32")
      first_point = box[0]
      rectangle = cv2.minAreaRect(box)
      box = cv2.boxPoints(rectangle)
  
      # Put the points in clockwise order
      box = np.array(
          np.roll(
              box,
              -np.linalg.norm(box - first_point, axis=1).argmin(),
              0,
          )
      )
      return box, text
  
imports: import os
  import io
  import typing
  import hashlib
  import urllib.request
  import urllib.parse
  import cv2
  import imgaug
  import numpy
  import validators
  import typing_extensions
  import matplotlib.pyplot
  from shapely import geometry
  from scipy import spatial
label_desc: Use image node_id 5 for calling a global function with example usage: combine_line(line) and returns: box,  text