class_docstr: The ``LabelStudioVideoInput`` expects the input to :meth:`~flash.core.data.io.input.Input.load_data` to be a json
  export from label studio.
  
  Export data should point to video files
class_docstr_tok: ["The","``","LabelStudioVideoInput","``","expects","the","input","to",":","meth",":","`","~flash.core.data.io.input.Input.load_data","`","to","be","a","json","export","from","label","studio",".","Export","data","should","point","to","video","files"]
code: def __init__(
      self,
      running_stage: RunningStage,
      data: Any,
      *args,
      clip_sampler: str = "random",
      clip_duration: float = 2,
      video_sampler: Type[Sampler] = torch.utils.data.RandomSampler,
      decode_audio=False,
      decoder: str = "pyav",
      clip_sampler_kwargs: Optional[Dict] = None,
      data_folder: str = "",
      **kwargs,
  ):
      if not _PYTORCHVIDEO_AVAILABLE:
          raise ModuleNotFoundError(
              "Please, run `pip install pytorchvideo`."
          )
      self.video_sampler = (
          video_sampler or torch.utils.data.RandomSampler
      )
      clip_sampler_kwargs = clip_sampler_kwargs or {}
      self.clip_sampler = make_clip_sampler(
          clip_sampler, clip_duration, **clip_sampler_kwargs
      )
      self.decode_audio = decode_audio
      self.decoder = decoder
      self.clip_duration = clip_duration
      self._data_folder = data_folder
      super().__init__(running_stage, data, *args, **kwargs)
  
imports: import json
  import os
  from copy import deepcopy
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Any, Dict, List, Mapping, Optional, Sequence, Set, Type
  import numpy
  import torch
  from pytorch_lightning.utilities.cloud_io import get_filesystem
  from torch.utils.data import Sampler
  from flash.core.data.io.input import DataKeys, Input, IterableInput
  from flash.core.data.properties import Properties
  from flash.core.data.utilities.loading import load_image
  from flash.core.utilities.imports import _PYTORCHVIDEO_AVAILABLE
  from flash.core.utilities.stages import RunningStage
label_desc: Use image node_id 1 to create a new LabelStudioVideoClassificationInput object from inherited base classes: LabelStudioIterableInput with example: obj = LabelStudioVideoClassificationInput(running_stage, data)