docstr: Converts the quadrature integral appropriately.
  
  The return shape of quadrature is batch_shape + [d']. Here, d'=1, but
  we want predict_log_density and variational_expectations to return just
  batch_shape, so we squeeze out the extra dimension.
  
  Also see _quadrature_log_prob.
docstr_tok: ["Converts","the","quadrature","integral","appropriately",".","The","return","shape","of","quadrature","is","batch_shape","+","[","d","'","]",".","Here",",","d'=1",",","but","we","want","predict_log_density","and","variational_expectations","to","return","just","batch_shape",",","so","we","squeeze","out","the","extra","dimension",".","Also","see","_quadrature_log_prob","."]
code: def _quadrature_reduction(
      self, quadrature_result: TensorType
  ) -> tf.Tensor:
      """
      Converts the quadrature integral appropriately.
  
      The return shape of quadrature is batch_shape + [d']. Here, d'=1, but
      we want predict_log_density and variational_expectations to return just
      batch_shape, so we squeeze out the extra dimension.
  
      Also see _quadrature_log_prob.
      """
      return tf.squeeze(quadrature_result, axis=-1)
  
imports: import abc
  from typing import Any, Callable, Iterable, Optional, Sequence, Union
  import tensorflow
  from check_shapes import check_shapes, inherit_check_shapes
  from ..base import MeanAndVariance, Module, TensorType
  from ..quadrature import GaussianQuadrature, NDiagGHQuadrature, ndiag_mc
label_desc: Use image node_id 4 for calling the QuadratureLikelihood obj's underlying member method code with example usage: obj._quadrature_reduction(quadrature_result) and returns: tf