code: def test_list_of_funcs():
      def f(x):
          return {"f": 1}
  
      def g(x):
          return {"g": 2}
  
      def times_2(x):
          return {k: v * 2 for k, v in x.items()}
  
      expected = {"f": 2, "g": 4}
      assert (
          compose.Pipeline([f, g], times_2).transform_one(None)
          == expected
      )
      assert ([f, g] | compose.FuncTransformer(times_2)).transform_one(
          None
      ) == expected
  
file_path: river/river/compose/test_.py
imports: from __future__ import annotations
  import pandas
  from river import compose, linear_model, preprocessing
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_of_funcs() and returns: dict, dict, unknown