code: def normalizeSequence(sequence, considerDimensions=None):
    
    seq = np.array(sequence).astype('float64')
    nSampleDim = seq.shape[1]
  
    if considerDimensions is None:
      considerDimensions = range(nSampleDim)
  
    for dim in considerDimensions:
      seq[:, dim] = (seq[:, dim] - np.mean(seq[:, dim])) / np.std(seq[:, dim])
  
    sequence = seq.tolist()
    return sequence
docs: normalize sequence by subtracting the mean and
    :param sequence: a list of data samples
    :param considerDimensions: a list of dimensions to consider
    :return: normalized sequence