<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fix(h, i):
 """Rearrange the heap after the item at position i got updated."""

    down(h, i, h.size())
    up(h, i)