code: def test_invalid_defaults_property_name_constructor(self):
      with pytest.raises(ValueError):
          go.Figure(
              layout={"template": {"layout": {"xaxis": {"bogus": 500}}}}
          )
  
imports: import copy
  from unittest import TestCase
  import pytest
  import plotly.io
  import plotly.graph_objs
  from plotly.tests.utils import TestCaseNoTemplate
label_desc: Use image node_id 10 for calling the TemplateTest obj's underlying member method code with example usage: obj.test_invalid_defaults_property_name_constructor() without return types