def METHOD_NAME(cls, json, options = None):
    config = Config()
    config.parse_dict(copy.deepcopy(json))
    if options is not None:
        config.parse_options(options)
    config.resolve_expressions()
    config.partitions.sort()
    return config