code: def test_property_assignment_nested(self):
      # Set scatter marker color
      self.figure.data[0].marker.color = "green"
      self.figure._send_restyle_msg.assert_called_once_with(
          {"marker.color": ["green"]}, trace_indexes=0
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py
imports: import sys
  from unittest import TestCase
  import plotly.graph_objs
label_desc: Use image node_id 3 for calling the TestRestyleMessage obj's underlying member method code with example usage: obj.test_property_assignment_nested() without return types