def get_movielens_data():
train_data, test_data = _get_raw_movielens_data()<EOL>uids = set()<EOL>iids = set()<EOL>for uid, iid, rating, timestamp in itertools.chain(_parse(train_data),<EOL>_parse(test_data)):<EOL><INDENT>uids.add(uid)<EOL>iids.add(iid)<EOL><DEDENT>rows = max(uids) + <NUM_LIT:1><EOL>cols = max(iids) + <NUM_LIT:1><EOL>return (_build_interaction_matrix(rows, cols, _parse(train_data)),<EOL>_build_interaction_matrix(rows, cols, _parse(test_data)))<EOL>
Return (train_interactions, test_interactions).