code: def test_update_validation_error(self):
      fig, ax = plt.subplots()
      ax.plot([1, 2, 3])
      update = {"invalid": "anything"}
      with pytest.raises(KeyError):
          py.plot_mpl(
              fig, update=update, filename="nosetests", auto_open=False
          )
  
file_path: plotly.py/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py
imports: from __future__ import absolute_import
  import _plotly_utils.exceptions
  from plotly import optional_imports
  from chart_studio.plotly import plotly
  from unittest import TestCase
  import pytest
label_desc: Use image node_id 3 for calling the PlotMPLTest obj's underlying member method code with example usage: obj.test_update_validation_error() without return types