code: def __init__(self, transforms: TransformsSeqType, p: float):
      if isinstance(transforms, (BaseCompose, BasicTransform)):
          warnings.warn(
              "transforms is single transform, but a sequence is expected! Transform will be wrapped into list."
          )
          transforms = [transforms]
  
      self.transforms = transforms
      self.p = p
  
      self.replay_mode = False
      self.applied_in_replay = False
  
imports: from __future__ import division
  import random
  import typing
  import warnings
  from collections import defaultdict
  import numpy
  from ..None import random_utils
  from .bbox_utils import BboxParams, BboxProcessor
  from .keypoints_utils import KeypointParams, KeypointsProcessor
  from .serialization import SERIALIZABLE_REGISTRY, Serializable, get_shortest_class_fullname, instantiate_nonserializable
  from .transforms_interface import BasicTransform
  from .utils import format_args, get_shape
label_desc: Use image node_id 1 to create a new BaseCompose object from inherited base classes: Serializable with example: obj = BaseCompose(transforms, p)