code: def test_reduce_on_components(
      components_list, fn_name, reduction, expected
  ):
      composite = Composite(components_list)
      res = composite.reduce_on_components(fn_name, reduction=reduction)
      assert res == expected
  
file_path: icevision/tests/core/test_composite.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_reduce_on_components(components_list, fn_name, reduction, expected) without return types