<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unregister(self, name):

 """Unregister function by name.
 """

        try:
            name = name.name
        except AttributeError:
            pass
        return self.pop(name,None)