class_docstr: Compose multiple transforms sequentially.
  
  Args:
      transforms (Sequence[dict | callable]): Sequence of transform object or
          config dict to be composed.
code: def __init__(self, transforms):
      assert isinstance(transforms, collections.abc.Sequence)
      self.transforms = []
      for transform in transforms:
          if isinstance(transform, dict):
              transform = build_from_cfg(transform, PIPELINES)
              self.transforms.append(transform)
          elif callable(transform):
              self.transforms.append(transform)
          else:
              raise TypeError("transform must be callable or a dict")
  
file_path: insightface/detection/scrfd/mmdet/datasets/pipelines/compose.py
imports: import collections
  from mmcv.utils import build_from_cfg
  from ..builder import PIPELINES
label_desc: Use image node_id 1 to create a new Compose object from inherited base classes: object with example: obj = Compose(transforms)