code: def test_move_layout_nested_properties(self):
      fig = go.Figure(
          layout={
              "font": {"family": "Courier New"},
              "paper_bgcolor": "yellow",
              "title": "Hello",
          }
      )
      templated_fig = pio.to_templated(fig)
  
      # Note that properties named 'title' are not moved to template by
      # default
      expected_fig = go.Figure(
          layout={
              "template": {
                  "layout": {
                      "font": {"family": "Courier New"},
                      "paper_bgcolor": "yellow",
                  },
              },
              "title": "Hello",
          }
      )
      self.assertEqual(templated_fig, expected_fig)
  
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 TestToTemplated obj's underlying member method code with example usage: obj.test_move_layout_nested_properties() without return types