def _migrate_dashboard_stats_to_latest_schema(versioned_dashboard_stats):
 stats_schema_version = versioned_dashboard_stats.schema_version
 if (not (1 <= stats_schema_version <= feconf.CURRENT_DASHBOARD_STATS_SCHEMA_VERSION)):
  raise Exception(('Sorry, we can only process v1-v%d dashboard stats schemas at present.' % feconf.CURRENT_DASHBOARD_STATS_SCHEMA_VERSION))

def _migrate_dashboard_stats_to_latest_schema ( versioned_dashboard_stats ) : stats_schema_version = versioned_dashboard_stats . schema_version if ( not ( 1 <= stats_schema_version <= feconf . CURRENT_DASHBOARD_STATS_SCHEMA_VERSION ) ) : raise Exception ( ( 'Sorry, we can only process v1-v%d dashboard stats schemas at present.' % feconf . CURRENT_DASHBOARD_STATS_SCHEMA_VERSION ) )
holds responsibility of updating the structure of dashboard stats .