code: def coordinatewise_jvp(f, x):
      """Returns the diagonal of the jacobian of an coordinatewise `f`."""
      # If `f` acts coordinatewise, then multiplying by the Jacobian by
      # the ones vector will retrieve the diagonal.
      return _jvp(f, x, tf.ones_like(x))
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 2 for calling a global function with example usage: coordinatewise_jvp(f, x) and returns: _jvp