code: def gauss_wave():
      """
      Essentially, this is a high-frequency sinusoidal function plus a broad quadratic.
      One variable controls the position along the curve.
      The binary variable determines whether the sinusoidal is shifted by pi.
  
      So there are actually two maxima in this problem, it's just one is more
      probable.  The tricky thing here is dealing with the fact that there are two
      variables and one is discrete.
  
      """
  
      x = hp.uniform("x", -20, 20)
      t = hp.choice("curve", [x, x + np.pi])
      f1 = scope.sin(t)
      f2 = 2 * scope.exp(-((t / 5) ** 2))
      return {"loss": -(f1 + f2), "status": base.STATUS_OK}
  
imports: import unittest
  import numpy
  from hyperopt import Trials, Domain, fmin, hp, base
  from hyperopt.rand import suggest
  from hyperopt.pyll import as_apply
  from hyperopt.pyll import scope
label_desc: Use image node_id 8 for calling a global function with example usage: gauss_wave() and returns: dict