@fiss_cmd<EOL>def monitor(args):
r = fapi.list_submissions(args.project, args.workspace)<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL>statuses = sorted(r.json(), key=lambda k: k['<STR_LIT>'], reverse=True)<EOL>header = '<STR_LIT:\t>'.join(list(statuses[<NUM_LIT:0>].keys()))<EOL>expander = lambda v: '<STR_LIT>'.format(v)<EOL>def expander(thing):<EOL><INDENT>if isinstance(thing, dict):<EOL><INDENT>entityType = thing.get("<STR_LIT>", None)<EOL>if entityType:<EOL><INDENT>return "<STR_LIT>".format(entityType, thing['<STR_LIT>'])<EOL><DEDENT><DEDENT>return "<STR_LIT>".format(thing)<EOL><DEDENT>return [header] + ['<STR_LIT:\t>'.join( map(expander, v.values())) for v in statuses]<EOL>
Retrieve status of jobs submitted from a given workspace, as a list
        of TSV lines sorted by descending order of job submission date