code: def test_component_class_default():
      MyComponent = component_class("MyComponent")
      comp = MyComponent()
      res = comp.run(value=1)
      assert res == {"value": None}
  
      res = comp.run(value="something")
      assert res == {"value": None}
  
      res = comp.run(non_existing_input=1)
      assert res == {"value": None}
  
file_path: haystack/test/testing/test_factory.py
imports: import pytest
  from haystack.dataclasses import Document
  from haystack.testing.factory import document_store_class, component_class
  from haystack.core.component import component
label_desc: Use image node_id 8 for calling a global function with example usage: test_component_class_default() without return types