code: def test_save_estimator_using_cloudpickle(foo):
      """Check if serialization works with cloudpickle."""
      from sktime.base._serialize import load
  
      est = _DummyComposite(foo)
  
      serialized = est.save(serialization_format="cloudpickle")
      loaded_est = load(serialized)
  
      if callable(foo):
          assert est.foo(2) == loaded_est.foo(2)
      else:
          assert est.foo == loaded_est.foo
  
imports: import pickle
  import numpy
  import pandas
  import pytest
  from sklearn.model_selection import KFold
  from sktime.classification.base import BaseClassifier
  from sktime.classification.deep_learning.base import BaseDeepClassifier
  from sktime.classification.distance_based import KNeighborsTimeSeriesClassifier
  from sktime.classification.dummy import DummyClassifier
  from sktime.utils._testing.estimator_checks import _assert_array_almost_equal
  from sktime.utils._testing.panel import _make_classification_y, _make_panel, make_classification_problem
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 15 for calling a global function with example usage: test_save_estimator_using_cloudpickle(foo) without return types