class_docstr: A generic polynomial mean function.
class_docstr_tok: ["A","generic","polynomial","mean","function","."]
code: def __call__(self, X: TensorType) -> tf.Tensor:
      raised = cs(
          tf.pow(X[..., None, :], self.powers),
          "[batch..., n_terms, input_dim]",
      )
      prod = cs(
          tf.math.reduce_prod(raised, axis=-1), "[batch..., n_terms]"
      )
      return tf.einsum("...i,ji->...j", prod, self.w)
  
imports: from typing import Collection, Optional, Sequence, Tuple
  import numpy
  import tensorflow
  from check_shapes import check_shape
  from check_shapes import check_shapes, inherit_check_shapes
  from .base import Module, Parameter, TensorType
  from .config import default_float, default_int
label_desc: Use image node_id 3 for calling the Polynomial obj's underlying member method code with example usage: obj.__call__(X) and returns: tf