code: def cartesian_add(xs):
      """Adds a list of vectors by cumulatively expanding a dimension."""
      return sum(
          ps.reshape(x, shape=[-1] + [1] * (len(xs) - 1 - i))
          for i, x in enumerate(xs)
      )
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.nn.util import utils
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 3 for calling a global function with example usage: cartesian_add(xs) and returns: sum