code: def addNoiseToVector(inputVector, noiseLevel, vectorType):
    
    if vectorType == 'sparse':
      corruptSparseVector(inputVector, noiseLevel)
    elif vectorType == 'dense':
      corruptDenseVector(inputVector, noiseLevel)
    else:
      raise ValueError("vectorType must be 'sparse' or 'dense' ")
docs: Add noise to SDRs
    @param inputVector (array) binary vector to be corrupted
    @param noiseLevel  (float) amount of noise to be applied on the vector.
    @param vectorType  (string) "sparse" or "dense"