<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_sparse_matrix_keys(session, key_table):
 """Return a list of keys for the sparse matrix."""

    return session.query(key_table).order_by(key_table.name).all()