def create_submission(filename, pred, ids=None):
    data = ['id,num_views,num_votes,num_comments']
    pred = pred.astype('S100')
    
    if ids is None:
        ids = datasets.load_dataset('TestIDS')
    
    for id, p in zip(ids, pred):
        data.append('%i,' % (id) + ','.join(p))
    data = '\n'.join(data)
    f = open((config.SUBMITDIR, filename) %'%s/%s', 'w')
    f.write(data)
    f.close()
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/utils.py/create_submission/swapped operands of `%`