code: def distractor():
      """
      This is a nasty function: it has a max in a spike near -10, and a long
      asymptote that is easy to find, but guides hill-climbing approaches away
      from the true max.
  
      The second peak is at x=-10.
      The prior mean is 0.
      """
  
      x = hp.uniform("x", -15, 15)
      # climbs rightward from 0.0 to 1.0
      f1 = 1 / (1 + scope.exp(-x))
      f2 = 2 * scope.exp(
          -((x + 10) ** 2)
      )  # bump with height 2 at (x=-10)
      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 7 for calling a global function with example usage: distractor() and returns: dict