def model_config(model):
    """Extract the configuration of a Keras model instance.

    Args:
        model (Keras model instance): A Keras model instance.

    Returns:
        dict: A dictionary containing the configuration of the model.

    """
    config = model.config()
    # Returns a dictionary containing the configuration of the model.
    return config