code: def flat_grad(f, params):
      return flat_concat(tf.gradients(xs=params, ys=f))
  
imports: import numpy
  import tensorflow
  import scipy.signal
  from gym.spaces import Box, Discrete
label_desc: Use image node_id 15 for calling a global function with example usage: flat_grad(f, params) and returns: flat_concat