code: def get_moments(model, x):
      """
      Moments (mean and sdev.) of a GP model at x
  
      """
      input_dim = model.X.shape[1]
      x = reshape(x, input_dim)
      fmin = min(model.predict(model.X)[0])
      m, v = model.predict(x)
      s = np.sqrt(np.clip(v, 0, np.inf))
      return (m, s, fmin)
  
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 6 for calling a global function with example usage: get_moments(model, x) and returns: m,  s,  fmin