code: def get_input_token_temporal_dims(
      num_frames: int, view_configs: Sequence[ml_collections.ConfigDict]
  ) -> List[int]:
      """Returns temporal dims of input tokens for each view.
  
      Args:
        num_frames: Number of frames in the input video.
        view_configs: Configurations of each view in the MTV model.
  
      Returns:
        Temporal dimensions of input tokens from each view.
      """
      return [
          num_frames // view["patches"]["size"][2]
          for view in view_configs
      ]
  
imports: from typing import Any, Dict, List, Optional, Sequence
  from absl import logging
  import flax
  import jax.numpy
  import ml_collections
  import numpy
  from scenic.projects.vivit import model_utils
  from scenic.train_lib import train_utils
  import scipy.ndimage
label_desc: Use image node_id 1 for calling a global function with example usage: get_input_token_temporal_dims(num_frames, view_configs) and returns: unknown