<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def makeCallbackPromise(function, *args, **kwargs):
 """ Take a function that reports its result using a callback and return a Promise that listenes for this callback. The function must accept a callback as its first parameter. The callback must take two arguments: - success : True or False - result : The result of the operation if success is True or the error otherwise. """


    def _resolver(resolve, reject):
        function(
            lambda success, result: resolve(result) if success else reject(result),
            *args,
            **kwargs
        )

    return Promise(_resolver)