<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def register_callback(self, cb):
 """ Allows the caller to register a callback, and returns a closure that can be used to unregister the provided callback """

        self._callbacks.add(cb)

        def unregister():
            self._callbacks.remove(cb)

        return unregister