code: def perimeter(self, bbox):
      peri = 0.0
      for i in range(bbox.shape[0]):
          peri += self.dist(bbox[i], bbox[(i + 1) % bbox.shape[0]])
      return peri
  
imports: import os
  import cv2
  import random
  import pyclipper
  import paddle
  import numpy
  from ppocr.utils.utility import check_install
  import scipy.io
  from PIL import Image
  import paddle.vision.transforms
label_desc: Use image node_id 3 for calling the MakeShrink obj's underlying member method code with example usage: obj.perimeter(bbox) and returns: peri