class_docstr: Accessing clips from an encoded video using Torchvision video reading API
  (torch.ops.video_reader.read_video_from_memory) as the decoding backend.
class_docstr_tok: ["Accessing","clips","from","an","encoded","video","using","Torchvision","video","reading","API","(","torch.ops.video_reader.read_video_from_memory",")","as","the","decoding","backend","."]
docstr: Returns:
      duration: the video's duration/end-time in seconds.
docstr_tok: ["Returns",":","duration",":","the","video","'s","duration\/end-time","in","seconds","."]
code: def duration(self) -> float:
      """
      Returns:
          duration: the video's duration/end-time in seconds.
      """
      return self._duration
  
file_path: pytorchvideo/pytorchvideo/data/encoded_video_torchvision.py
imports: import logging
  from fractions import Fraction
  from typing import BinaryIO, Dict, Optional
  import numpy
  import torch
  from .utils import pts_to_secs, secs_to_pts, thwc_to_cthw
  from .video import Video
label_desc: Use image node_id 3 for calling the EncodedVideoTorchVision obj's underlying member method code with example usage: obj.duration() and returns: self