def METHOD_NAME(self, config):
    # if config is not a dict, assign value to 'path' key
    if not isinstance(config, dict):
        config = {'path': config}
    # if only a single path is passed turn it into a 1 element list
    if isinstance(config['path'], str):
        config['path'] = [config['path']]
    return config