code: def _merge_result(self, command, res, **kwargs):
          
          if command in self.result_callbacks:
              return self.result_callbacks[command](res, **kwargs)
  
          # Default way to handle result
          return first_key(res)
docs: `res` is a dict with the following structure Dict(NodeName, CommandResult)