code: def get_bezier_control_points_for_curved_edge(
      x1, y1, x2, y2, curvature
  ):
      """Helper function that calculates the Bezier control points for a
      curved edge that goes from (x1, y1) to (x2, y2).
      """
      aux1 = (
          (2 * x1 + x2) / 3.0 - curvature * 0.5 * (y2 - y1),
          (2 * y1 + y2) / 3.0 + curvature * 0.5 * (x2 - x1),
      )
      aux2 = (
          (x1 + 2 * x2) / 3.0 - curvature * 0.5 * (y2 - y1),
          (y1 + 2 * y2) / 3.0 + curvature * 0.5 * (x2 - x1),
      )
      return aux1, aux2
  
imports: from collections import defaultdict
  from math import atan2, cos, hypot, sin
  from typing import NamedTuple
  from igraph.utils import consecutive_pairs
label_desc: Use image node_id 4 for calling a global function with example usage: get_bezier_control_points_for_curved_edge(x1, y1, x2, y2, curvature) and returns: aux1,  aux2