code: def test_raises_invalid_toplevel_kwarg(self):
      with self.assertRaises(TypeError):
          go.Figure(
              data=[{"type": "bar"}],
              layout={"title": "Figure title"},
              frames=[
                  {
                      "data": [{"type": "bar"}],
                      "layout": {"title": "Figure title"},
                  }
              ],
              bogus=123,
          )
  
imports: import plotly.graph_objects
  from plotly.subplots import make_subplots
  from plotly.tests.utils import TestCaseNoTemplate
  import pytest
label_desc: Use image node_id 9 for calling the FigureTest obj's underlying member method code with example usage: obj.test_raises_invalid_toplevel_kwarg() without return types