code: def build_invalid_fig():
      return dict(
          data=[{"type": "bar", "y": "not_a_list", "bogus": 23}],
          layout_title_text="valid title",
          layout_colorway="not a dict",
      )
  
imports: import plotly.graph_objs
  import json
  import pytest
  import plotly.io
label_desc: Use image node_id 1 for calling a global function with example usage: build_invalid_fig() and returns: dict