code: def set_round_corner(e, pts):
      P = list(map(array, pts))
      n = len(P)
      Q, T = tangents(P, n)
      c0 = P[0]
      t0 = T[0]
      k0 = 0
      splines = []
      k = 1
      while k < n:
          z = abs(t0[0] * T[k][1] - (t0[1] * T[k][0]))
          if z < 1.0e-6:
              k += 1
              continue
          if (k - 1) > k0:
              splines.append([c0, P[k - 1]])
          if (k + 1) < n:
              splines.extend(
                  setcurve(
                      e, [P[k - 1], P[k + 1]], tgs=[T[k - 1], T[k + 1]]
                  )
              )
          else:
              splines.extend(
                  setcurve(e, [P[k - 1], P[k]], tgs=[T[k - 1], T[k]])
              )
              break
          if (k + 2) < n:
              c0 = P[k + 1]
              t0 = T[k + 1]
              k0 = k + 1
              k += 2
          else:
              break
      return splines or [[P[0], P[-1]]]
  
file_path: pygraphistry/graphistry/layout/utils/geometry.py
imports: from numpy import array, cos, sin
  from math import atan2, sqrt
label_desc: Use image node_id 7 for calling a global function with example usage: set_round_corner(e, pts) and returns: unknown