code: def setUp(self):
      self.template1 = go.layout.Template(
          layout={"font": {"size": 20, "family": "Rockwell"}},
          data={
              "scatter": [
                  go.Scatter(line={"dash": "solid"}),
                  go.Scatter(line={"dash": "dot"}),
              ],
              "bar": [
                  go.Bar(marker={"opacity": 0.7}),
                  go.Bar(marker={"opacity": 0.4}),
              ],
              "parcoords": [
                  go.Parcoords(dimensiondefaults={"multiselect": True})
              ]
              # no 'scattergl'
          },
      )
      pio.templates["template1"] = self.template1
      self.template1_orig = copy.deepcopy(self.template1)
  
      self.template2 = go.layout.Template(
          layout={
              "paper_bgcolor": "green",
              "font": {"size": 14, "color": "yellow"},
          },
          data={
              "scatter": [
                  go.Scatter(marker={"color": "red"}),
                  go.Scatter(marker={"color": "green"}),
                  go.Scatter(marker={"color": "blue"}),
              ],
              # no 'bar'
              "parcoords": [
                  go.Parcoords(line={"colorscale": "Viridis"}),
                  go.Parcoords(line={"colorscale": "Blues"}),
              ],
              "scattergl": [go.Scattergl(hoverinfo="x+y")],
          },
      )
      pio.templates["template2"] = self.template2
      self.template2_orig = copy.deepcopy(self.template2)
  
      self.expected1_2 = go.layout.Template(
          layout={
              "paper_bgcolor": "green",
              "font": {
                  "size": 14,
                  "color": "yellow",
                  "family": "Rockwell",
              },
          },
          data={
              "scatter": [
                  go.Scatter(
                      marker={"color": "red"}, line={"dash": "solid"}
                  ),
                  go.Scatter(
                      marker={"color": "green"}, line={"dash": "dot"}
                  ),
                  go.Scatter(
                      marker={"color": "blue"}, line={"dash": "solid"}
                  ),
                  go.Scatter(
                      marker={"color": "red"}, line={"dash": "dot"}
                  ),
                  go.Scatter(
                      marker={"color": "green"}, line={"dash": "solid"}
                  ),
                  go.Scatter(
                      marker={"color": "blue"}, line={"dash": "dot"}
                  ),
              ],
              "bar": [
                  go.Bar(marker={"opacity": 0.7}),
                  go.Bar(marker={"opacity": 0.4}),
              ],
              "parcoords": [
                  go.Parcoords(
                      dimensiondefaults={"multiselect": True},
                      line={"colorscale": "Viridis"},
                  ),
                  go.Parcoords(
                      dimensiondefaults={"multiselect": True},
                      line={"colorscale": "Blues"},
                  ),
              ],
              "scattergl": [go.Scattergl(hoverinfo="x+y")],
          },
      )
  
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 1 for calling the TestMergeTemplates obj's underlying member method code with example usage: obj.setUp() without return types