code: def cal_line_length(point1, point2):
      return math.sqrt(
          math.pow(point1[0] - point2[0], 2)
          + math.pow(point1[1] - point2[1], 2)
      )
  
file_path: mmocr/tools/dataset_converters/textdet/imgur_converter.py
imports: import argparse
  import math
  import os.path
  import mmcv
  import mmengine
  import numpy
  from mmocr.utils import dump_ocr_data
label_desc: Use image node_id 5 for calling a global function with example usage: cal_line_length(point1, point2) and returns: math