code: def _test_func2d(x):
      f = (
          cos(14.5 * x[0] - 0.3)
          + (x[0] + 0.2) * x[0]
          + cos(14.5 * x[1] - 0.3)
          + (x[1] + 0.2) * x[1]
          + x[0] * x[1]
          + 1.963879482144252
      )
      df = np.zeros(2)
      df[0] = -14.5 * sin(14.5 * x[0] - 0.3) + 2.0 * x[0] + 0.2 + x[1]
      df[1] = -14.5 * sin(14.5 * x[1] - 0.3) + 2.0 * x[1] + 0.2 + x[0]
      return f, df
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  import math
  from numpy import cos, sin
  import scipy.optimize
  from scipy._lib._util import check_random_state
label_desc: Use image node_id 3 for calling a global function with example usage: _test_func2d(x) and returns: f,  df