def METHOD_NAME(self):
    model = Path(self.get_value_from_config('model'))
    weights = self.get_value_from_config('weights')
    if model.is_dir():
        models_list = list(model.glob('{}.prototxt'.format(self._model_name)))
        if not models_list:
            models_list = list(model.glob('*.prototxt'))
        if not models_list:
            raise ConfigError('Suitable model description is not detected')
        if len(models_list) != 1:
            raise ConfigError('Several suitable models found, please specify required model')
        model = models_list[0]
    if weights is None or Path(weights).is_dir():
        weights_dir = weights or model.parent
        weights = Path(weights_dir) / model.name.replace('prototxt', 'caffemodel')
        if not weights.exists():
            weights_list = list(Path(weights_dir).glob('*.caffemodel'))
            if not weights_list:
                raise ConfigError('Suitable weights is not detected')
            if len(weights_list) != 1:
                raise ConfigError('Several suitable weights found, please specify required explicitly')
            weights = weights_list[0]
    accepted_suffixes = ['.prototxt']
    if model.suffix not in accepted_suffixes:
        raise ConfigError('Models with following suffixes are allowed: {}'.format(accepted_suffixes))
    print_info('Found model {}'.format(model))
    weights = Path(weights)
    accepted_weights_suffixes = ['.caffemodel']
    if weights.suffix not in accepted_weights_suffixes:
        raise ConfigError('Weights with following suffixes are allowed: {}'.format(accepted_weights_suffixes))
    print_info('Found weights {}'.format(weights))
    return model, weights