code: def test_skip_invalid_property_value(self):
      fig = go.Figure(
          data=[{"type": "bar", "showlegend": "bad_value"}],
          layout={
              "paper_bgcolor": "bogus_color",
              "title": "Figure title",
          },
          frames=[
              {
                  "data": [{"type": "bar", "showlegend": "bad_value"}],
                  "layout": {
                      "bgcolor": "bad_color",
                      "title": "Figure title",
                  },
              }
          ],
          skip_invalid=True,
      )
  
      fig_dict = fig.to_dict()
  
      # Remove trace uid property
      for trace in fig_dict["data"]:
          trace.pop("uid", None)
  
      self.assertEqual(fig_dict["data"], [{"type": "bar"}])
      self.assertEqual(
          fig_dict["layout"], {"title": {"text": "Figure title"}}
      )
      self.assertEqual(
          fig_dict["frames"],
          [
              {
                  "data": [{"type": "bar"}],
                  "layout": {"title": {"text": "Figure title"}},
              }
          ],
      )
  
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 8 for calling the FigureTest obj's underlying member method code with example usage: obj.test_skip_invalid_property_value() without return types