code: def interp(points, n=50):
      x = [x for x, _ in points]
      y = [y for _, y in points]
      tck, u = splprep([x, y], s=0, t=n, k=min(3, len(points) - 1))
  
      u = np.linspace(0.0, 1.0, num=(len(u) - 1) * n + 1)
      return np.array(splev(u, tck)).T
  
imports: import os
  import cv2
  import numpy
  import os.path
  from functools import partial
  from .metrics import Metric
  from scipy.interpolate import splprep, splev
  from scipy.optimize import linear_sum_assignment
  from shapely.geometry import LineString, Polygon
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 4 for calling a global function with example usage: interp(points, n) and returns: np