code: def test_update_overwrite_data(self):
      fig = go.Figure(
          data=[
              go.Bar(marker_color="blue"),
              go.Bar(marker_color="yellow"),
          ]
      )
  
      fig.update(
          overwrite=True,
          data=[go.Marker(y=[1, 3, 2], line_color="yellow")],
      )
  
      self.assertEqual(
          fig.to_plotly_json()["data"],
          [
              {
                  "type": "scatter",
                  "y": [1, 3, 2],
                  "line": {"color": "yellow"},
              }
          ],
      )
  
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 17 for calling the FigureTest obj's underlying member method code with example usage: obj.test_update_overwrite_data() without return types