code: def spaced_indexes(len_, n, trunc=False):
      
  
      if n is None:
          return np.arange(len_)
      all_indexes = np.arange(len_)
      if trunc:
          n = min(len_, n)
      if n == 0:
          return np.empty(0)
      stride = len_ // n
      try:
          indexes = all_indexes[0:-1:stride]
      except ValueError:
          raise ValueError('cannot slice list of len_=%r into n=%r parts' % (len_, n))
      return indexes
docs: Returns n evenly spaced indexes.
      Returns as many as possible if trunc is true