code: def plot_line(pt1, pt2, fmt="r-", label=None):
      plt.plot([pt1[0], pt2[0]], [pt1[1], pt2[1]], fmt, label=label)
  
file_path: nibabel/doc/source/scripts/make_coord_examples.py
imports: import math
  import matplotlib.pyplot
  import nipy
  import nipy.algorithms.resample
  import nipy.core.api
  import numpy
  import numpy.linalg
  import nibabel.eulerangles
label_desc: Use image node_id 2 for calling a global function with example usage: plot_line(pt1, pt2, fmt, label) without return types