<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def name_in_checkpoint(var):
 """ Removes 'model' scoping if it is present in order to properly restore weights. """

        if var.op.name.startswith('model/'):
            return var.op.name[len('model/'):]