'Return the config of a saved visualization and revision.
If no revision given, default to latest revision.'

def _get_saved_visualization_config(self, visualization, revision=None, **kwargs):

    return copy.copy(visualization.latest_revision.config)
