code: def endpoint(xyz):
      """
      Parameters
      ----------
      xyz : array, shape(N,3)
          Track.
  
      Returns
      -------
      ep : array, shape(3,)
          First track point.
  
      Examples
      --------
      >>> from dipy.tracking.metrics import endpoint
      >>> import numpy as np
      >>> theta=np.pi*np.linspace(0,1,100)
      >>> x=np.cos(theta)
      >>> y=np.sin(theta)
      >>> z=0*x
      >>> xyz=np.vstack((x,y,z)).T
      >>> ep=endpoint(xyz)
      >>> ep.any()==xyz[-1].any()
      True
      """
  
      return xyz[-1]
  
imports: from dipy.utils.deprecator import deprecate_with_version
  from dipy.tracking.streamline import set_number_of_points
  import numpy
  from scipy.interpolate import splprep, splev
label_desc: Use image node_id 18 for calling a global function with example usage: endpoint(xyz) and returns: xyz