code: def test_update_overwrite_layout(self):
      fig = go.Figure(layout=go.Layout(width=1000))
  
      # By default, update works recursively so layout.width should remain
      fig.update(layout={"title": {"text": "Fig Title"}})
      fig.layout.pop("template")
      self.assertEqual(
          fig.layout.to_plotly_json(),
          {"title": {"text": "Fig Title"}, "width": 1000},
      )
  
      # With overwrite=True, all existing layout properties should be
      # removed
      fig.update(
          overwrite=True, layout={"title": {"text": "Fig2 Title"}}
      )
      fig.layout.pop("template")
      self.assertEqual(
          fig.layout.to_plotly_json(), {"title": {"text": "Fig2 Title"}}
      )
  
imports: import plotly.graph_objects
  from plotly.subplots import make_subplots
  from plotly.tests.utils import TestCaseNoTemplate
  import pytest
label_desc: Use image node_id 16 for calling the FigureTest obj's underlying member method code with example usage: obj.test_update_overwrite_layout() without return types