class_docstr: MTV model.
docstr: Checks configuration errors.
docstr_tok: ["Checks","configuration","errors","."]
code: def _check_config(self, x: jnp.ndarray):
      """Checks configuration errors."""
      if (
          self.keep_spatiotemporal_features
          and self.classifier == "token"
      ):
          raise ValueError(
              "Classifier cannot be `token` when "
              "`keep_spatiotemporal_features` is True."
          )
      heights = [
          config["patches"]["size"][0] for config in self.view_configs
      ]
      widths = [
          config["patches"]["size"][1] for config in self.view_configs
      ]
      if self.keep_spatiotemporal_features and (
          len(set(heights)) > 1 or len(set(widths)) > 1
      ):
          raise ValueError(
              "Patches from different views must have the same height "
              "and width when `keep_spatiotemporal_features` is True."
          )
  
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 11 for calling the MTV obj's underlying member method code with example usage: obj._check_config(x) without return types