class_docstr: Encoder model for video.
  
  Attributes:
    config: The config to create the image model from.
    temporal_agg: How to agregate embeddings of the different frames.
class_docstr_tok: ["Encoder","model","for","video",".","Attributes",":","config",":","The","config","to","create","the","image","model","from",".","temporal_agg",":","How","to","agregate","embeddings","of","the","different","frames","."]
code: def __call__(self, x_rgb, *, train: bool, debug: bool = False):
      if x_rgb is None:
          return x_rgb
      video_embedding = Image2VideoEncoder(
          self.config, self.temporal_agg
      )(x=x_rgb, train=train, debug=debug)
      return video_embedding
  
imports: from typing import Any, Optional
  import flax.linen
  import jax
  import jax.numpy
  import ml_collections
  from scenic.model_lib.base_models import base_model
  from scenic.projects.baselines.clip import layers
  from scenic.projects.baselines.clip import model
  from scenic.projects.verbs_in_action import losses
  from scenic.projects.verbs_in_action import utils
label_desc: Use image node_id 1 for calling the VideoEncoder obj's underlying member method code with example usage: obj.__call__(x_rgb) and returns: video_embedding, x_rgb