def model_from_json(json_string, custom_objects=None):
    """Parses a JSON model configuration file
    and returns a model instance.
    """
    import json
    from keras.utils.layer_utils import layer_from_config
    config = json.loads(json_string)
    return layer_from_config(config, custom_objects=custom_objects)
