code: def defaultmax(x, default=-np.inf):
      if x.size == 0:
          return default
      return np.max(x)
  
file_path: autograd/examples/bayesian_optimization.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  import matplotlib.pyplot
  import autograd.numpy
  import autograd.numpy.random
  from autograd import value_and_grad
  from scipy.optimize import minimize
  from gaussian_process import make_gp_funs, rbf_covariance
  from autograd.scipy.stats import norm
label_desc: Use image node_id 4 for calling a global function with example usage: defaultmax(x, default) and returns: np, default