<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_renamed(self, func, serialised=True):
 """ Register a callback for resource rename. This will be called when any resource is renamed 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 new local name of the resource oldLid : <name> # the old 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 renamed_callback(args):
 print(args) client.register_callback_renamed(renamed_callback) This would print out something like the following on renaming of an R_ENTITY #!python OrderedDict([(u'lid', u'new_name'), (u'r', 1), (u'oldLid', u'old_name'), (u'id', u'4448993b44738411de5fe2a6cf32d957')]) """


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