code: def to_tensor(self) -> Tensor:  # type: ignore[override]
      out = super().to_tensor(as_padded_sequence=False)
      out = cast(Tensor, out)
      return out.view(-1, self.temporal_channel_size, *out.shape[1:])
  
imports: from typing import List, Optional, Tuple, Union, cast
  import torch
  from torch import Size
  from kornia.core import Tensor
  from kornia.geometry import transform_points
label_desc: Use image node_id 2 for calling the VideoKeypoints obj's underlying member method code with example usage: obj.to_tensor() and returns: out