code: def __init__(self, path):
      with codecs.open(path, "r", "utf-8") as file:
          self.dic = yaml.load(file, Loader=yaml.FullLoader)
      self._transforms = self.load_transforms(
          self.dic["Deploy"]["transforms"]
      )
      self._dir = os.path.dirname(path)
  
imports: import argparse
  import codecs
  import os
  import sys
  import cv2
  import tqdm
  import yaml
  import numpy
  import paddle
  from paddle.inference import create_predictor, PrecisionType
  from paddle.inference import Config
  from paddleseg.cvlibs import manager
  from paddleseg.utils import get_sys_env, logger
  import ppmatting.transforms
  from ppmatting.utils import get_image_list, mkdir, estimate_foreground_ml, VideoReader, VideoWriter
label_desc: Use image node_id 1 to create a new DeployConfig object  with example: obj = DeployConfig(path)