code: def get_d_moments(model, x):
      """
      Gradients with respect to x of the moments (mean and sdev.) of the GP
      :param model: GPy model.
      :param x: location where the gradients are evaluated.
      """
      input_dim = model.input_dim
      x = reshape(x, input_dim)
      _, v = model.predict(x)
      dmdx, dvdx = model.predictive_gradients(x)
      dmdx = dmdx[:, :, 0]
      dsdx = dvdx / (2 * np.sqrt(v))
      return (dmdx, dsdx)
  
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 7 for calling a global function with example usage: get_d_moments(model, x) and returns: dmdx,  dsdx