<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run(itf):
 """ 	Run preprocess functions 	"""


    if not itf:
        return 1

    # access command-line arguments
    options = SplitInput(itf)

    # read input
    infile = os.path.abspath(options.input)
    molList = read_csv(infile, options)

    # split molList into actives and decoys
    activeList, decoyList = partition(molList, options)

    # split actives and decoys into training and validation sets
    trainset, valset = split(activeList, decoyList, options)

    # write csv files formatted for ensemble builder
    csv_writer(trainset, options, 'training_set')
    csv_writer(valset, options, 'test_set')