code: def test_raises_on_bad_dot_property(some_fig):
      # Check . property lookup errors can be detected when path used as key to
      # go.Figure
      raised = False
      try:
          x2000 = some_fig["layout.shapes[1].x2000"]
      except KeyError as e:
          raised = True
          assert (
              e.args[0].find(
                  """Bad property path:
  layout.shapes[1].x2000
                   ^^^^^"""
              )
              and (e.args[0].find("""Did you mean "x0"?""") >= 0) >= 0
          )
      assert raised
  
imports: import plotly.graph_objects
  from _plotly_utils.exceptions import PlotlyKeyError
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_raises_on_bad_dot_property(some_fig) without return types