code: def generate_pivot_list_slow(
      p_score,
      p_char_maps,
      f_direction,
      score_thresh=0.5,
      is_backbone=False,
      is_curved=True,
      image_id=0,
  ):
      """
      Warp all the function together.
      """
      if is_curved:
          return generate_pivot_list_curved(
              p_score,
              p_char_maps,
              f_direction,
              score_thresh=score_thresh,
              is_expand=True,
              is_backbone=is_backbone,
              image_id=image_id,
          )
      else:
          return generate_pivot_list_horizontal(
              p_score,
              p_char_maps,
              f_direction,
              score_thresh=score_thresh,
              is_backbone=is_backbone,
              image_id=image_id,
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import cv2
  import math
  import numpy
  from itertools import groupby
  from skimage.morphology._skeletonize import thin
label_desc: Use image node_id 18 for calling a global function with example usage: generate_pivot_list_slow(p_score, p_char_maps, f_direction, score_thresh, is_backbone, is_curved, image_id) and returns: generate_pivot_list_curved, generate_pivot_list_horizontal