code: def compose(*functions):
      def compose2(f, g):
          return lambda x: f(g(x))
  
      return functools.reduce(compose2, functions, lambda x: x)
  
imports: import functools
  import threading
  import collections
  import contextlib
  import six
label_desc: Use image node_id 6 for calling a global function with example usage: compose() and returns: functools, function