code: def objective(z, x):
      """Multi-fidelity objective.
      z[0] is assumed to be the log10 resolution and z[1] the amount of data to be used.
      """
      resolution = _get_resoltion_from_z0(z[0])
      return snls_avg_log_likelihood(x, resolution, z[1])
  
imports: import numpy
  from scipy.stats import norm
  from scipy import integrate
label_desc: Use image node_id 4 for calling a global function with example usage: objective(z, x) and returns: snls_avg_log_likelihood