def _auth_return_future(f):
    replacer = ArgReplacer(f, 'callback')

    @functools.wraps(f)
    def wrapper(*args, **kwargs):
        future = Future()
        callback, args, kwargs = replacer.replace(future, args, kwargs)
        if callback is not None:
            future.add_done_callback(
                functools.partial(_auth_future_to_callback, callback))
        f(*args, **kwargs)
        return future
    return wrapper
Returns a Bayesian Model which is minimal IMap of the Joint Probability Distribution
dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py/_auth_return_future--crossover with--dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/factors/JointProbabilityDistribution.py/JointProbabilityDistribution.minimal_imap