code: def logeinsumexp(formula, *tensors):
      """Computing `einsum` in logarithmic space.
  
      Args:
        formula: a formula compatible with `einsum`. (But note that
          ellipses are not supported.)
        *tensors: tensors to which contractions will be applied.
  
      Returns:
        `logeinsumexp(formula, *tensors)` is equivalent to
        `tf.math.log(einsum(formula, *map(tf.math.exp, tensors)))` except
        that it is more numerically stable.
  
      Notes:
        This implementation of `logeinsumexp` is primarily intended for internal
        use in the `marginalize` library and assumes the formula is well-formed.
      """
  
      _, path = oe.contract_path(formula, *tensors)
      return _execute_contract_path(
          path.contraction_list, list(tensors)
      )
  
file_path: probability/tensorflow_probability/python/experimental/marginalize/logeinsumexp.py
imports: import opt_einsum
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 2 for calling a global function with example usage: logeinsumexp(formula) and returns: _execute_contract_path