code: def relist_streamlines(points, offsets):
      """Given a representation of a set of streamlines as a large array and
      an offsets array return the streamlines as a list of shorter arrays.
  
      Parameters
      ----------
      points : array
      offsets : array
  
      Returns
      -------
      streamlines: sequence
      """
  
      streamlines = [points[0 : offsets[0]]]
  
      for i in range(len(offsets) - 1):
          streamlines.append(points[offsets[i] : offsets[i + 1]])
  
      return streamlines
  
imports: from copy import deepcopy
  from warnings import warn
  import types
  from scipy.spatial.distance import cdist
  import numpy
  from nibabel.affines import apply_affine
  from nibabel.streamlines import ArraySequence
  from dipy.tracking.streamlinespeed import length, set_number_of_points
  from dipy.tracking.distances import bundles_distances_mdf
  import dipy.tracking.utils
  from dipy.core.geometry import dist_to_corner
  from dipy.core.interpolation import interpolate_vector_3d, interpolate_scalar_3d
label_desc: Use image node_id 2 for calling a global function with example usage: relist_streamlines(points, offsets) and returns: streamlines