docs: def decode_callbacks(encoded_callbacks):
      """Decode the callbacks to an executable form."""
      from furious.async import Async
  
      callbacks = {}
      for event, callback in encoded_callbacks.iteritems():
          if isinstance(callback, dict):
              async_type = Async
              if '_type' in callback:
                  async_type = path_to_reference(callback['_type'])
              callback = async_type.from_dict(callback)
          else:
              callback = path_to_reference(callback)
  
          callbacks[event] = callback
  
      return callbacks