docstr: Return the cap. If multiprocessing, create a new one. Else return the one from construction time.
docstr_tok: ["Return","the","cap",".","If","multiprocessing",",","create","a","new","one",".","Else","return","the","one","from","construction","time","."]
code: def _get_cap(self):
      """Return the cap. If multiprocessing, create a new one. Else return the one from construction time."""
      return (
          self.open_video(self.video_source)
          if self.multiprocessing
          else self.cap
      )
  
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 3 for calling the VideoDataset obj's underlying member method code with example usage: obj._get_cap() and returns: unknown