code: def continuous_heteroscedastic_1d(x):
      """Compute 0.2 * x^4 - x^2 + 2 + eps
      where eps ~ N(0, |0.2 * x| + 1e-7) and x in [-2., 2]
      """
      rng = np.random.RandomState(7)
      noise = rng.normal(0.0, 0.2 * np.abs(x) + 1e-7)
      fx = np.atleast_1d(0.2 * x**4 - x**2 + 2 + noise)
      fx[np.logical_and(x < -2.0, x > 2.0)] = 0.0
      return fx
  
file_path: hypertunity/hypertunity/optimisation/tests/_common.py
imports: import numpy
  from hypertunity.optimisation import EvaluationScore
label_desc: Use image node_id 2 for calling a global function with example usage: continuous_heteroscedastic_1d(x) and returns: fx