code: def _part_segments(streamline, break_points):
      segments = np.split(streamline, break_points.nonzero()[0])
      # Skip first segment, all points before first break
      # first segment is empty when break_points[0] == 0
      segments = segments[1:]
      for each in segments:
          if len(each) > 1:
              yield each
  
imports: from collections import defaultdict, OrderedDict
  from functools import wraps
  from itertools import combinations, groupby
  from warnings import warn
  import numpy
  from nibabel.affines import apply_affine
  from scipy.spatial.distance import cdist
  from dipy.core.geometry import dist_to_corner
  from dipy.tracking import metrics
  from dipy.tracking.vox2track import _streamlines_in_mask
  from dipy.tracking._utils import _mapping_to_voxel, _to_voxel_coordinates
label_desc: Use image node_id 19 for calling a global function with example usage: _part_segments(streamline, break_points) without return types