code: def relate_point(X, i, ax):
      pt_i = X[i]
      for j, pt_j in enumerate(X):
          thickness = link_thickness_i(X, i)
          if i != j:
              line = ([pt_i[0], pt_j[0]], [pt_i[1], pt_j[1]])
              ax.plot(
                  *line, c=cm.Set1(y[j]), linewidth=5 * thickness[j]
              )
  
file_path: scikit-learn/examples/neighbors/plot_nca_illustration.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import cm
  from scipy.special import logsumexp
  from sklearn.datasets import make_classification
  from sklearn.neighbors import NeighborhoodComponentsAnalysis
label_desc: Use image node_id 2 for calling a global function with example usage: relate_point(X, i, ax) without return types