code: def get_curvature(nodes, s, tangent_vec, curvature):
      
      if NO_IMAGES:
          return
  
      curve = bezier.Curve.from_nodes(nodes)
      # Find the center of the circle along the direction
      # perpendicular to the tangent vector (90 degree left turn).
      radius_dir = np.asfortranarray([[-tangent_vec[1, 0]], [tangent_vec[0, 0]]])
      radius_dir /= np.linalg.norm(radius_dir, ord=2)
      point = curve.evaluate(s)
      circle_center = point + radius_dir / curvature
      # Add the curve.
      ax = curve.plot(256)
      # Add the circle.
      circle_center = circle_center.ravel(order="F")
      circle = plt.Circle(circle_center, 1.0 / abs(curvature), alpha=0.25)
      ax.add_artist(circle)
      # Add the point.
      ax.plot(
          point[0, :], point[1, :], color="black", marker="o", linestyle="None"
      )
      ax.axis("scaled")
      ax.set_xlim(-0.0625, 1.0625)
      ax.set_ylim(-0.0625, 0.625)
      save_image(ax.figure, "get_curvature.png")
docs: Image for :func:`get_curvature` docstring.