code: def test_loadcomponents(write_metadata_file):
      my_component = generate_class(
          "MyComponent",
          METADATA["MyComponent.react.js"]["props"],
          METADATA["MyComponent.react.js"]["description"],
          "default_namespace",
      )
  
      a_component = generate_class(
          "A",
          METADATA["A.react.js"]["props"],
          METADATA["A.react.js"]["description"],
          "default_namespace",
      )
  
      c = load_components(METADATA_PATH)
  
      my_component_kwargs = {
          "foo": "Hello World",
          "bar": "Lah Lah",
          "baz": "Lemons",
          "data-foo": "Blah",
          "aria-bar": "Seven",
          "children": "Child",
      }
      a_kwargs = {"children": "Child", "href": "Hello World"}
  
      assert isinstance(my_component(**my_component_kwargs), Component)
  
      assert repr(my_component(**my_component_kwargs)) == repr(
          c[0](**my_component_kwargs)
      )
  
      assert repr(a_component(**a_kwargs)) == repr(c[1](**a_kwargs))
  
file_path: dash/tests/unit/development/test_component_loader.py
imports: import collections
  import json
  import os
  import shutil
  import pytest
  from dash.development._py_components_generation import generate_class
  from dash.development.base_component import Component
  from dash.development.component_loader import load_components, generate_classes
label_desc: Use image node_id 3 for calling a global function with example usage: test_loadcomponents(write_metadata_file) without return types