code: def select_video_class(decoder: str) -> Video:
      """
      Select the class for accessing clips based on provided decoder string
  
      Args:
          decoder (str): Defines what type of decoder used to decode a video.
      """
      if DecoderType(decoder) == DecoderType.PYAV:
          from .encoded_video_pyav import EncodedVideoPyAV
  
          video_cls = EncodedVideoPyAV
      elif DecoderType(decoder) == DecoderType.TORCHVISION:
          from .encoded_video_torchvision import EncodedVideoTorchVision
  
          video_cls = EncodedVideoTorchVision
      elif DecoderType(decoder) == DecoderType.DECORD:
          from .encoded_video_decord import EncodedVideoDecord
  
          video_cls = EncodedVideoDecord
      else:
          raise NotImplementedError(f"Unknown decoder type {decoder}")
  
      return video_cls
  
file_path: pytorchvideo/pytorchvideo/data/encoded_video.py
imports: import io
  import logging
  import pathlib
  from typing import Any, Dict
  from iopath.common.file_io import g_pathmgr
  from pytorchvideo.data.decoder import DecoderType
  from .video import Video
label_desc: Use image node_id 1 for calling a global function with example usage: select_video_class(decoder) and returns: video_cls