code: def test_arguments_become_attributes(component_class):
      kwargs = {
          "id": "my-id",
          "children": "text children",
          "optionalArray": [[1, 2, 3]],
      }
      component_instance = component_class(**kwargs)
      for k, v in list(kwargs.items()):
          assert getattr(component_instance, k) == v
  
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 4 for calling a global function with example usage: test_arguments_become_attributes(component_class) without return types