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