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