code: def logit_normal_mean_trapezoid(loc, scale):
      """Brute-force the mean of LogitNormal(loc, scale) by quadrature."""
      dist = normal.Normal(loc, scale)
      grid, compute = logit_normal_trapezoid_rule(loc, scale)
      return compute(tf.sigmoid(grid) * dist.prob(grid))
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import bernoulli
  from tensorflow_probability.python.distributions import kullback_leibler
  from tensorflow_probability.python.distributions import logitnormal
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 2 for calling a global function with example usage: logit_normal_mean_trapezoid(loc, scale) and returns: compute