code: def grad(f, X):
      a = []
      for x in X:
          a.append(f.diff(x))
      return a
  
imports: from sympy import exp, Symbol, sin, dsolve, Function, Matrix, Eq, pprint, solve
label_desc: Use image node_id 1 for calling a global function with example usage: grad(f, X) and returns: a