class_docstr: Represent a batch of latents/scenes
docstr: Raise ValueError if we have invalid shapes.
docstr_tok: ["Raise","ValueError","if","we","have","invalid","shapes","."]
code: def validate_shapes(self):
      """Raise ValueError if we have invalid shapes."""
      if self.tensor.dtype != torch.float32:
          raise ValueError("Expected float32")
      if self.tensor.dim() != 5:
          raise ValueError(
              f"Expected (B, T, C, H, W), got {self.tensor.shape}"
          )
  
imports: from typing import List, NamedTuple, Optional, Union
  import torch
  from torch import Tensor
label_desc: Use image node_id 5 for calling the Scenes obj's underlying member method code with example usage: obj.validate_shapes() without return types