code: def test_overwrite_compound_prop(self):
      layout = go.Layout(title_font_family="Courier")
  
      # First update with default (recursive) behavior
      layout.update(title={"text": "Fig Title"})
      expected = {
          "title": {"text": "Fig Title", "font": {"family": "Courier"}}
      }
      self.assertEqual(layout.to_plotly_json(), expected)
  
      # Update with overwrite behavior
      layout.update(title={"text": "Fig Title2"}, overwrite=True)
      expected = {"title": {"text": "Fig Title2"}}
      self.assertEqual(layout.to_plotly_json(), expected)
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_update.py
imports: from unittest import skip
  import plotly.graph_objs
  from plotly.graph_objs import Data, Figure, Layout, Line, Scatter, scatter, XAxis
  from plotly.tests.utils import strip_dict_params
  from unittest import TestCase
label_desc: Use image node_id 11 for calling the TestUpdateMethod obj's underlying member method code with example usage: obj.test_overwrite_compound_prop() without return types