code: def test_is_composite():
      """Tests is_composite tag for correctness.
  
      Raises
      ------
      AssertionError if logic behind is_composite is incorrect
      """
      non_composite = CompositionDummy(foo=42)
      composite = CompositionDummy(foo=non_composite)
  
      assert not non_composite.is_composite()
      assert composite.is_composite()
  
imports: from copy import deepcopy
  import pytest
  from sktime.base import BaseEstimator, BaseObject
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 7 for calling a global function with example usage: test_is_composite() without return types