code: def test_composite_add_component():
      composite = Composite([])
      comp1, comp2 = MockComponent1(), MockComponent2()
      composite.add_component(comp1)
      composite.add_component(comp2)
  
      assert composite.components == [comp2, comp1]
  
file_path: icevision/tests/core/test_composite.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_composite_add_component() without return types