code: def test_validate_property_path_nested(self):
      fn = MagicMock()
      with pytest.raises(ValueError):
          self.figure.layout.xaxis.on_change(fn, "bogus")
  
imports: import sys
  from unittest import TestCase
  import pytest
  import plotly.graph_objs
label_desc: Use image node_id 4 for calling the TestOnChangeCallbacks obj's underlying member method code with example usage: obj.test_validate_property_path_nested() without return types