code: def spawn(f):
      """
      Function for parallel evaluation of the acquisition function
      """
  
      def fun(pipe, x):
          pipe.send(f(x))
          pipe.close()
  
      return fun
  
file_path: GPyOpt/GPyOpt/util/general.py
imports: import numpy
  from scipy.special import erfc
  import time
  from ..core.errors import InvalidConfigError
label_desc: Use image node_id 10 for calling a global function with example usage: spawn(f) and returns: fun