code: def func2d(x):
      f = (
          cos(14.5 * x[0] - 0.3)
          + (x[1] + 0.2) * x[1]
          + (x[0] + 0.2) * x[0]
      )
      df = np.zeros(2)
      df[0] = -14.5 * sin(14.5 * x[0] - 0.3) + 2.0 * x[0] + 0.2
      df[1] = 2.0 * x[1] + 0.2
      return f, df
  
imports: import copy
  from numpy.testing import assert_almost_equal, assert_equal, assert_
  import pytest
  from pytest import raises
  import numpy
  from numpy import cos, sin
  from scipy.optimize import basinhopping, OptimizeResult
  from scipy.optimize._basinhopping import Storage, RandomDisplacement, Metropolis, AdaptiveStepsize
  from scipy._lib._pep440 import Version
label_desc: Use image node_id 3 for calling a global function with example usage: func2d(x) and returns: f,  df