def METHOD_NAME(
        self,
        model_type: str='panns_cnn14_audioset',
        cfg_path: Optional[os.PathLike]=None,
        model_path: Optional[os.PathLike]=None,
        params_path: Optional[os.PathLike]=None,
        label_file: Optional[os.PathLike]=None,
        predictor_conf: dict=None, ):
    """
    Init model and other resources from a specific path.
    """
    if cfg_path is None or model_path is None or params_path is None or label_file is None:
        tag = model_type + '-' + '32k'
        self.task_resource.set_task_model(model_tag=tag)
        self.res_path = self.task_resource.res_dir
        self.cfg_path = os.path.join(
            self.res_path, self.task_resource.res_dict['cfg_path'])
        self.model_path = os.path.join(
            self.res_path, self.task_resource.res_dict['model_path'])
        self.params_path = os.path.join(
            self.res_path, self.task_resource.res_dict['params_path'])
        self.label_file = os.path.join(
            self.res_path, self.task_resource.res_dict['label_file'])
    else:
        self.cfg_path = os.path.abspath(cfg_path)
        self.model_path = os.path.abspath(model_path)
        self.params_path = os.path.abspath(params_path)
        self.label_file = os.path.abspath(label_file)
    logger.debug(self.cfg_path)
    logger.debug(self.model_path)
    logger.debug(self.params_path)
    logger.debug(self.label_file)
    # config
    with open(self.cfg_path, 'r') as f:
        self._conf = yaml.safe_load(f)
    logger.debug("Read cfg file successfully.")
    # labels
    self._label_list = []
    with open(self.label_file, 'r') as f:
        for line in f:
            self._label_list.append(line.strip())
    logger.debug("Read label file successfully.")
    # Create predictor
    self.predictor_conf = predictor_conf
    self.predictor = init_predictor(
        model_file=self.model_path,
        params_file=self.params_path,
        predictor_conf=self.predictor_conf)
    logger.debug("Create predictor successfully.")