class_docstr: Multiview Transformer Encoder.
  
  Attributes:
    view_configs: Model configs for each view (e.g., num_heads, mlp_dim, etc).
    cross_view_fusion: Cross view fusion config.
    dropout_rate: Dropout rate.
    attention_dropout_rate: Dropout for attention heads.
    stochastic_depth: probability of dropping a layer linearly grows from 0 to
      the provided value. Our implementation of stochastic depth follows the
      timm library, which does per-example layer dropping and uses independent
      dropping patterns for each skip-connection.
    dtype: Any of activations.
docstr: Adds positional embeddings.
docstr_tok: ["Adds","positional","embeddings","."]
code: def _add_posembed(
      self, tokens: Sequence[jnp.ndarray]
  ) -> List[jnp.ndarray]:
      """Adds positional embeddings."""
      temporal_dims_after_alignment = [
          t // min(self.input_token_temporal_dims)
          for t in self.input_token_temporal_dims
      ]
      xs = []
      for idx, t in enumerate(tokens):
          bs, spacetime, channels = t.shape
          reshaped_t = t.reshape(
              (bs, temporal_dims_after_alignment[idx], -1, channels)
          )
          add_posembed_fn = vit.AddPositionEmbs(
              name=f"posembed_input_view{idx}"
          )
          x = jax.vmap(add_posembed_fn, in_axes=1, out_axes=1)(
              reshaped_t
          )
          xs.append(x.reshape(bs, spacetime, channels))
      return xs
  
imports: import functools
  from typing import Any, List, Sequence, Tuple, Union
  import flax.linen
  import jax
  import jax.numpy
  import ml_collections
  from scenic.model_lib.layers import attention_layers
  from scenic.model_lib.layers import nn_layers
  from scenic.projects.baselines import vit
  from scenic.projects.mtv import model_utils
  from scenic.projects.vivit import model
  from scenic.train_lib import train_utils
label_desc: Use image node_id 2 for calling the MultiviewEncoder obj's underlying member method code with example usage: obj._add_posembed(tokens) and returns: xs