def METHOD_NAME(self):
    # Initialize images
    self.figure.layout.updatemenus = [
        {},
        go.layout.Updatemenu(
            buttons=[{}, {}, go.layout.updatemenu.Button(method="relayout")]
        ),
        {},
    ]
    self.figure._send_relayout_msg.assert_called_once_with(
        {"updatemenus": [{}, {"buttons": [{}, {}, {"method": "relayout"}]}, {}]}
    )
    # Reset mock and perform property assignment
    self.figure._send_relayout_msg = MagicMock()
    self.figure.plotly_relayout({"updatemenus[1].buttons.0.method": "restyle"})
    self.figure._send_relayout_msg.assert_called_once_with(
        {"updatemenus[1].buttons.0.method": "restyle"}
    )