code: def pad_trunc(data, maxlen):
      
      new_data = []
  
      # Create a vector of 0's the length of our word vectors
      zero_vector = []
      for _ in range(len(data[0][0])):
          zero_vector.append(0.0)
  
      for sample in data:
  
          if len(sample) > maxlen:
              temp = sample[:maxlen]
          elif len(sample) < maxlen:
              temp = sample
              additional_elems = maxlen - len(sample)
              for _ in range(additional_elems):
                  temp.append(zero_vector)
          else:
              temp = sample
          new_data.append(temp)
      return new_data
docs: For a given dataset pad with zero vectors or truncate to maxlen