code: def test_debc012_to_plotly_json_full_tree():
      c = nested_tree()[0]
      Component._namespace
      Component._type
  
      expected = {
          "type": "TestComponent",
          "namespace": "test_namespace",
          "props": {
              "children": [
                  {
                      "type": "TestComponent",
                      "namespace": "test_namespace",
                      "props": {"id": "0.0"},
                  },
                  {
                      "type": "TestComponent",
                      "namespace": "test_namespace",
                      "props": {
                          "children": {
                              "type": "TestComponent",
                              "namespace": "test_namespace",
                              "props": {
                                  "children": {
                                      "type": "TestComponent",
                                      "namespace": "test_namespace",
                                      "props": {
                                          "children": [
                                              10,
                                              None,
                                              "wrap string",
                                              {
                                                  "type": "TestComponent",
                                                  "namespace": "test_namespace",
                                                  "props": {
                                                      "children": "string",
                                                      "id": "0.1.x.x.0",
                                                  },
                                              },
                                              "another string",
                                              4.51,
                                          ],
                                          "id": "0.1.x.x",
                                      },
                                  },
                                  "id": "0.1.x",
                              },
                          },
                          "id": "0.1",
                      },
                  },
              ],
              "id": "0",
          },
      }
  
      res = json.loads(
          json.dumps(
              c.to_plotly_json(), cls=plotly.utils.PlotlyJSONEncoder
          )
      )
      assert res == expected
  
imports: import json
  import plotly
  import pytest
  from dash import __version__, Dash
  from dash import html
  from dash.development.base_component import Component
  from dash import dcc, Input, Output
label_desc: Use image node_id 13 for calling a global function with example usage: test_debc012_to_plotly_json_full_tree() without return types