def _MakeRowTemplate(dash_json_dict):
    'Produces a template for rows created from a Dashboard JSON v1.0 dict.\n\n  _DashboardJsonToRawRows adds metadata fields to every row that it creates.\n  These include things like master, bot, point ID, versions, and other\n  supplementary data. This method produces a dict containing this metadata\n  to which row-specific information (like value and error) can be added.\n  Some metadata needs to be transformed to conform to the v0 format, and this\n  method is also responsible for that transformation.\n\n  Some validation is deferred until after the input is converted to a list\n  of row dicts, since revision format correctness is checked on a per-point\n  basis.\n\n  Args:\n    dash_json_dict: A dashboard JSON v1.0 dict.\n\n  Returns:\n    A dict containing data to include in each row dict that is created from\n    |dash_json_dict|.\n  '
    row_template = dash_json_dict.copy()
    del row_template['chart_data']
    del row_template['point_id']
    row_template['revision'] = dash_json_dict['point_id']
    annotations = row_template['supplemental']
    versions = row_template['versions']
    del row_template['supplemental']
    del row_template['versions']
    row_template['supplemental_columns'] = {}
    supplemental = row_template['supplemental_columns']
    for annotation in annotations:
        supplemental[('a_' + annotation)] = annotations[annotation]
    for version in versions:
        supplemental[('r_' + version)] = versions[version]
    return row_template
Produces a template for rows created from a Dashboard JSON v1.0 dict.

_DashboardJsonToRawRows adds metadata fields to every row that it creates.
These include things like master, bot, point ID, versions, and other
supplementary data. This method produces a dict containing this metadata
to which row-specific information (like value and error) can be added.
Some metadata needs to be transformed to conform to the v0 format, and this
method is also responsible for that transformation.

Some validation is deferred until after the input is converted to a list
of row dicts, since revision format correctness is checked on a per-point
basis.

Args:
  dash_json_dict: A dashboard JSON v1.0 dict.

Returns:
  A dict containing data to include in each row dict that is created from
  |dash_json_dict|.
def _MakeRowTemplate(dash_json_dict):
    'Produces a template for rows created from a Dashboard JSON v1.0 dict.\n\n  _DashboardJsonToRawRows adds metadata fields to every row that it creates.\n  These include things like master, bot, point ID, versions, and other\n  supplementary data. This method produces a dict containing this metadata\n  to which row-specific information (like value and error) can be added.\n  Some metadata needs to be transformed to conform to the v0 format, and this\n  method is also responsible for that transformation.\n\n  Some validation is deferred until after the input is converted to a list\n  of row dicts, since revision format correctness is checked on a per-point\n  basis.\n\n  Args:\n    dash_json_dict: A dashboard JSON v1.0 dict.\n\n  Returns:\n    A dict containing data to include in each row dict that is created from\n    |dash_json_dict|.\n  '
    row_template = dash_json_dict.copy()
    del row_template['chart_data']
    del row_template['point_id']
    row_template['revision'] = dash_json_dict['point_id']
    annotations = row_template['supplemental']
    versions = row_template['versions']
    del row_template['supplemental']
    del row_template['versions']
    row_template['supplemental_columns'] = {}
    supplemental = row_template['supplemental_columns']
    for annotation in annotations:
        supplemental[('a_' + annotation)] = annotations[annotation]
    for version in versions:
        supplemental[('r_' + version)] = versions[version]
    return row_template