code: def test_move_nested_trace_properties(self):
      fig = go.Figure(
          data=[
              go.Bar(
                  y=[1, 2, 3], marker={"opacity": 0.6, "color": "green"}
              ),
              go.Scatter(
                  x=[1, 3, 2], marker={"size": 30, "color": [1, 1, 0]}
              ),
              go.Bar(
                  y=[3, 2, 1],
                  marker={"opacity": 0.4, "color": [1, 0.5, 0]},
              ),
          ],
          layout={"barmode": "group"},
      )
  
      templated_fig = pio.to_templated(fig)
  
      expected_fig = go.Figure(
          data=[
              go.Bar(y=[1, 2, 3]),
              go.Scatter(x=[1, 3, 2], marker={"color": [1, 1, 0]}),
              go.Bar(y=[3, 2, 1], marker={"color": [1, 0.5, 0]}),
          ],
          layout={
              "template": {
                  "data": {
                      "scatter": [go.Scatter(marker={"size": 30})],
                      "bar": [
                          go.Bar(
                              marker={"opacity": 0.6, "color": "green"}
                          ),
                          go.Bar(marker={"opacity": 0.4}),
                      ],
                  },
                  "layout": {"barmode": "group"},
              }
          },
      )
  
      self.assertEqual(templated_fig.to_dict(), expected_fig.to_dict())
  
imports: import copy
  from unittest import TestCase
  import pytest
  import plotly.io
  import plotly.graph_objs
  from plotly.tests.utils import TestCaseNoTemplate
label_desc: Use image node_id 6 for calling the TestToTemplated obj's underlying member method code with example usage: obj.test_move_nested_trace_properties() without return types