<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_blocked(self, name):
 """ block registrations of the given name, unregister if already registered. """

        self.unregister(name=name)
        self._name2plugin[name] = None