def _chain_callables(transforms):
   """
   Given a list of callable transformations in `transforms`, returns a callable that
   applies each transformation successively to a given input. All callables must be single
   argument functions.
   """
   def _callable_delegate(inputs):
      for func in transforms:
         inputs = func(inputs)
      return inputs
   return _callable_delegate