code: def centroid(pois):
      x = [poi.x for poi in pois]
      y = [poi.y for poi in pois]
      return PointOfInterest(sum(x) / len(pois), sum(y) / len(pois))
  
imports: import cv2
  import requests
  import os
  import numpy
  from PIL import ImageDraw
  from modules import paths_internal
  from pkg_resources import parse_version
label_desc: Use image node_id 7 for calling a global function with example usage: centroid(pois) and returns: PointOfInterest