code: def name_in_checkpoint(var):
          
          if var.op.name.startswith('model/'):
              return var.op.name[len('model/'):]
docs: Removes 'model' scoping if it is present in order to properly restore weights.