<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset(self, data, size):
 """ Set new contents for frame """

        return lib.zframe_reset(self._as_parameter_, data, size)