code: def test_required_props(component_written_class):
      with pytest.raises(Exception):
          component_written_class()
      component_written_class(id="test")
      with pytest.raises(Exception):
          component_written_class(id="test", lahlah="test")
      with pytest.raises(Exception):
          component_written_class(children="test")
  
imports: import json
  import os
  from collections import OrderedDict
  from difflib import unified_diff
  import pytest
  from dash.development._py_components_generation import generate_class
  from dash.development.component_generator import reserved_words
  from .None import _dir, expected_table_component_doc
label_desc: Use image node_id 12 for calling a global function with example usage: test_required_props(component_written_class) without return types