class_docstr: Base AudioVideo Reader
  
  Args:
      opts: command line arguments
      is_training: Training or validation mode. Default: `False`.
class_docstr_tok: ["Base","AudioVideo","Reader","Args",":","opts",":","command","line","arguments","is_training",":","Training","or","validation","mode",".","Default",":","`","False","`","."]
code: def read_video(
      self,
      filename: str,
      stream_idx: int = 0,
      audio_sample_rate: int = -1,
      custom_frame_transforms: Optional[BaseTransformation] = None,
      video_only: bool = False,
      *args,
      **kwargs,
  ) -> Dict:
      raise NotImplementedError
  
imports: import argparse
  import random
  from typing import Dict, Optional, Tuple
  import av
  import numpy
  import torch
  import torch.nn.functional
  from torch import Tensor
  from data.transforms import BaseTransformation
  from data.transforms import image_pil
  from data.transforms.common import Compose
  from options.utils import extend_selected_args_with_prefix, extract_opts_with_prefix_replacement
  from utils import logger
label_desc: Use image node_id 6 for calling the BaseAVReader obj's underlying member method code with example usage: obj.read_video(filename, stream_idx, audio_sample_rate, custom_frame_transforms, video_only) without return types