code: def _draw_box_outline_on_handler(draw, block, color, width):
      if not hasattr(block, "points"):
          points = (cvt_coordinates_to_points(block.coordinates),)
      else:
          points = block.points
  
      vertices = points.ravel().tolist()
      drawing_vertices = vertices + vertices[:2]
  
      draw.line(
          drawing_vertices,
          width=width,
          fill=color,
      )
  
imports: from typing import List, Optional, Union, Dict, Any, Tuple, Dict
  import functools
  import os
  import sys
  from itertools import cycle
  import numpy
  from PIL import Image, ImageFont, ImageDraw, ImageColor
  import layoutparser
  from .elements import Layout, Interval, Rectangle, TextBlock, Quadrilateral
  from .elements.utils import cvt_coordinates_to_points
label_desc: Use image node_id 7 for calling a global function with example usage: _draw_box_outline_on_handler(draw, block, color, width) without return types