code: def test_access_invalid_item(self):
      with pytest.raises(KeyError):
          self.figure["bogus"] = "val"
  
imports: from unittest import TestCase
  import pytest
  import plotly.graph_objs
  import plotly.io
label_desc: Use image node_id 12 for calling the TestFigureProperties obj's underlying member method code with example usage: obj.test_access_invalid_item() without return types