code: def test_update_initialize_nonempty_list_with_list_extends(self):
      layout = go.Layout(
          annotations=[
              go.layout.Annotation(text="one"),
              go.layout.Annotation(text="two"),
          ]
      )
  
      layout.update(
          annotations=[
              go.layout.Annotation(width=10),
              go.layout.Annotation(width=20),
              go.layout.Annotation(width=30),
              go.layout.Annotation(width=40),
              go.layout.Annotation(width=50),
          ]
      )
  
      expected = {
          "annotations": [
              {"text": "one", "width": 10},
              {"text": "two", "width": 20},
              {"width": 30},
              {"width": 40},
              {"width": 50},
          ]
      }
  
      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 10 for calling the TestUpdateMethod obj's underlying member method code with example usage: obj.test_update_initialize_nonempty_list_with_list_extends() without return types