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