code: def init(self, cfg):
      self.rules = []
      if isinstance(cfg, list):
          for sub_op in cfg:
              sub_op_arch = list(sub_op.keys())[0]
              sub_op_cfg = list(sub_op.values())[0]
              sub_op = create(sub_op_arch, sub_op_cfg, self.env_cfg)
              self.op_name2op[sub_op_arch] = sub_op
              self.rules.append(sub_op)
      logger.info("PostProcess has {} rules".format(len(self.rules)))
  
file_path: PaddleSeg/contrib/QualityInspector/qinspector/ops/postprocess.py
imports: from qinspector.cvlib.workspace import create, register
  from qinspector.utils.logger import setup_logger
label_desc: Use image node_id 2 for calling the PostProcess obj's underlying member method code with example usage: obj.init(cfg) without return types