def spawn(f):
    '''
    Function for parallel evaluation of the acquisition function
    '''
    def fun(pipe,x):
        pipe.send(f(x))
        pipe.close()
    return fun
def spawn ( f ) : def fun ( pipe , x ) : pipe . send ( f ( x ) ) pipe . close ( ) return fun
Function for parallel evaluation of the acquisition function