code: def test_pop_invalid_key(self):
      fig = go.Figure(layout=go.Layout(width=1000))
      with self.assertRaises(KeyError):
          fig.pop("bogus")
  
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 15 for calling the FigureTest obj's underlying member method code with example usage: obj.test_pop_invalid_key() without return types