<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_callback_deleted(self, func, serialised=True):
 """ Register a callback for resource deletion. This will be called when any resource is deleted within your agent. If `serialised` is not set, the callbacks might arrive in a different order to they were requested. The payload passed to your callback is an OrderedDict with the following keys #!python r : R_ENTITY, R_FEED, etc # the type of resource deleted lid : <name> # the local name of the resource id : <GUID> # the global Id of the resource `Note` resource types are defined [here](../Core/Const.m.html) `Example` #!python def deleted_callback(args):
 print(args) client.register_callback_deleted(deleted_callback) This would print out something like the following on deletion of an R_ENTITY #!python OrderedDict([(u'lid', u'old_thing1'), (u'r', 1), (u'id', u'315637813d801ec6f057c67728bf00c2')]) """

        self.__client.register_callback_deleted(partial(self.__callback_payload_only, func), serialised=serialised)