docstr: @param transforms: a list of transforms
  
  @param p: the probability of the transform being applied; default value is 1.0
docstr_tok: ["@","param","transforms",":","a","list","of","transforms","@","param","p",":","the","probability","of","the","transform","being","applied",";","default","value","is","1.0"]
code: def __init__(self, transforms: List[VidAugBaseClass], p: float = 1.0):
      """
      @param transforms: a list of transforms
  
      @param p: the probability of the transform being applied; default value is 1.0
      """
      for transform in transforms:
          assert isinstance(
              transform, VidAugBaseClass
          ), "Expected instances of type 'VidAugBaseClass' for parameter 'transforms'"
  
      super().__init__(p)
      self.transforms = transforms
  
file_path: AugLy/augly/video/composition.py
imports: import random
  import shutil
  from typing import Any, Dict, List, Optional
  from augly.video.helpers import validate_input_and_output_paths
  from augly.video.transforms import VidAugBaseClass
label_desc: Use image node_id 1 to create a new BaseComposition object from inherited base classes: VidAugBaseClass with example: obj = BaseComposition(transforms, p)