def _TestSuiteName(dash_json_dict):
    'Extracts a test suite name from Dashboard JSON.\n\n  The dashboard JSON may contain a field "test_suite_name". If this is not\n  present or it is None, the dashboard will fall back to using "benchmark_name"\n  in the "chart_data" dict.\n  '
    if dash_json_dict.get('test_suite_name'):
        return dash_json_dict['test_suite_name']
    try:
        return dash_json_dict['chart_data']['benchmark_name']
    except KeyError as e:
        raise BadRequestError(('Could not find test suite name. ' + e.message))
Extracts a test suite name from Dashboard JSON.

The dashboard JSON may contain a field "test_suite_name". If this is not
present or it is None, the dashboard will fall back to using "benchmark_name"
in the "chart_data" dict.
def _TestSuiteName(dash_json_dict):
    'Extracts a test suite name from Dashboard JSON.\n\n  The dashboard JSON may contain a field "test_suite_name". If this is not\n  present or it is None, the dashboard will fall back to using "benchmark_name"\n  in the "chart_data" dict.\n  '
    if dash_json_dict.get('test_suite_name'):
        return dash_json_dict['test_suite_name']
    try:
        return dash_json_dict['chart_data']['benchmark_name']
    except KeyError as e:
        raise BadRequestError(('Could not find test suite name. ' + e.message))