<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unfolding(tens, i):
 """Compute the i-th unfolding of a tensor."""

    return reshape(tens.full(), (np.prod(tens.n[0:(i+1)]), -1))