code: def test_debc020_to_plotly_json_without_children():
      c = Component(id="a")
      c._prop_names = ("id",)
      c._type = "MyComponent"
      c._namespace = "basic"
      assert c.to_plotly_json() == {
          "namespace": "basic",
          "props": {"id": "a"},
          "type": "MyComponent",
      }
  
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 21 for calling a global function with example usage: test_debc020_to_plotly_json_without_children() without return types