<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def RenameFunction(function, name):
 """ Returns a function identical to the specified function, but with the specified name. """

    return FunctionType(function.__code__,
                        function.__globals__,
                        name,
                        function.__defaults__)