class_docstr: Video dataset from file.
  
  This class requires that OpenCV be installed.
class_docstr_tok: ["Video","dataset","from","file",".","This","class","requires","that","OpenCV","be","installed","."]
docstr: Fetch single data item from index.
docstr_tok: ["Fetch","single","data","item","from","index","."]
code: def __getitem__(self, index: int) -> Any:
      """
      Fetch single data item from index.
      """
      if (
          self.max_num_frames is not None
          and index >= self.max_num_frames
      ):
          raise IndexError
      self._get_cap().set(cv2.CAP_PROP_POS_FRAMES, index)
      return self.get_frame()
  
imports: from __future__ import annotations
  import os
  import sys
  import tempfile
  from collections.abc import Callable
  from typing import TYPE_CHECKING, Any
  import numpy
  from torch.utils.data import Dataset, IterableDataset
  from monai.utils.enums import ColorOrder
  from monai.utils.module import optional_import
label_desc: Use image node_id 5 for calling the VideoFileDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self