code: def list_to_flat_grid(xs: Sequence[TensorType]) -> tf.Tensor:
      """
      :param xs: List with d rank-1 Tensors, with shapes N1, N2, ..., Nd
      :return: Tensor with shape [N1*N2*...*Nd, d] representing the flattened
          d-dimensional grid built from the input tensors xs
      """
      return tf.reshape(
          tf.stack(tf.meshgrid(*xs), axis=-1), (-1, len(xs))
      )
  
file_path: GPflow/gpflow/quadrature/gauss_hermite.py
imports: from typing import Sequence, Tuple
  import numpy
  import tensorflow
  from check_shapes import check_shapes, inherit_check_shapes
  from ..base import TensorType
  from ..config import default_float
  from .base import GaussianQuadrature
label_desc: Use image node_id 2 for calling a global function with example usage: list_to_flat_grid(xs) and returns: tf