original_docstring: 
      Convert paths from a collection object to 3D segments with path codes.
      
docstring: Convert paths from a collection object to 3D segments with path codes.
docstring_tokens: Convert paths from a collection object to 3D segments with path codes .
code: def paths_to_3d_segments_with_codes(paths, zs=0, zdir='z'):
      """
      Convert paths from a collection object to 3D segments with path codes.
      """
  
      zs = np.broadcast_to(zs, len(paths))
      segments = []
      codes_list = []
      for path, pathz in zip(paths, zs):
          segs, codes = path_to_3d_segment_with_codes(path, pathz, zdir)
          segments.append(segs)
          codes_list.append(codes)
      return segments, codes_list
code_tokens: def paths_to_3d_segments_with_codes ( paths , zs = 0 , zdir = 'z' ) : zs = np . broadcast_to ( zs , len ( paths ) ) segments = [ ] codes_list = [ ] for path , pathz in zip ( paths , zs ) : segs , codes = path_to_3d_segment_with_codes ( path , pathz , zdir ) segments . append ( segs ) codes_list . append ( codes ) return segments , codes_list
short_docstring: Convert paths from a collection object to 3D segments with path codes.
short_docstring_tokens: Convert paths from a collection object to 3D segments with path codes .
comment: """
      Convert paths from a collection object to 3D segments with path codes.
      """