<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_inputs_from_cm(index, cm):
 """Return indices of inputs to the node with the given index."""

    return tuple(i for i in range(cm.shape[0]) if cm[i][index])