code: def test_template_default_as_object(self):
      template = go.layout.Template(
          {"layout": {"font": {"family": "Rockwell"}}}
      )
      pio.templates.default = template
      fig = go.Figure()
      self.assertEqual(fig.layout.template, template)
  
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 20 for calling the TemplateTest obj's underlying member method code with example usage: obj.test_template_default_as_object() without return types