code: def test_throws_error_on_wrong_input_format(self):
      with self.assertRaisesRegex(
          ValueError, 'item #1 in specs list does not have an "id" key'
      ):
          specs = [{"chart": sample_chart()}]
          html_output = io.StringIO()
          dashboard_utils.create_html_report(
              specs, html_output=html_output
          )
  
      with self.assertRaisesRegex(
          ValueError, "item #1 in specs list is not a dictionary."
      ):
          specs = [sample_chart()]
          html_output = io.StringIO()
          dashboard_utils.create_html_report(
              specs, html_output=html_output
          )
  
file_path: deepvariant/deepvariant/dashboard_utils_test.py
imports: import io
  from absl.testing import absltest
  from absl.testing import parameterized
  import altair
  import pandas
  from deepvariant import dashboard_utils
label_desc: Use image node_id 2 for calling the DashboardUtilsTest obj's underlying member method code with example usage: obj.test_throws_error_on_wrong_input_format() without return types