class_docstr: Do transformation on input data with corresponding pre-processing and augmentation operations.
  The shape of input data to all operations is [height, width, channels].
class_docstr_tok: ["Do","transformation","on","input","data","with","corresponding","pre-processing","and","augmentation","operations",".","The","shape","of","input","data","to","all","operations","is","[","height",",","width",",","channels","]","."]
code: def __init__(self, transforms, to_rgb=True):
      if not isinstance(transforms, list):
          raise TypeError("The transforms must be a list!")
      self.transforms = transforms
      self.to_rgb = to_rgb
  
imports: import os
  import random
  import string
  import cv2
  import numpy
  from paddleseg.transforms import functional
  from paddleseg.cvlibs import manager
  from paddleseg.utils import seg_env
  from PIL import Image
label_desc: Use image node_id 1 to create a new Compose object  with example: obj = Compose(transforms, to_rgb)