code: def from_tensor(  # type: ignore[override]
      cls,
      boxes: torch.Tensor | list[torch.Tensor],
      validate_boxes: bool = True,
  ) -> VideoBoxes:
      if isinstance(boxes, (list,)) or (
          boxes.dim() != 5 or boxes.shape[-2:] != torch.Size([4, 2])
      ):
          raise ValueError(
              "Input box type is not yet supported. Please input an `BxTxNx4x2` tensor directly."
          )
  
      temporal_channel_size = boxes.size(1)
  
      quadrilaterals = _boxes_to_quadrilaterals(
          boxes.view(
              boxes.size(0) * boxes.size(1),
              -1,
              boxes.size(3),
              boxes.size(4),
          ),
          mode="vertices_plus",
          validate_boxes=validate_boxes,
      )
      out = cls(quadrilaterals, False, "vertices_plus")
      out.temporal_channel_size = temporal_channel_size
      return out
  
imports: from __future__ import annotations
  from typing import Optional, cast
  import torch
  from torch import Size
  from kornia.core import Tensor, stack, zeros
  from kornia.geometry.bbox import validate_bbox
  from kornia.geometry.linalg import transform_points
  from kornia.utils import eye_like
label_desc: Use image node_id 1 for calling the VideoBoxes obj's underlying member method code with example usage: obj.from_tensor(cls, boxes, validate_boxes) and returns: out