code: def _get_triplet(dd):
      
      return _s(dd['q']), _s(dd.get('r', NoResponse)), _s(dd.get('e', NoResponse))
docs: Return a triplet from a dialogue dictionary.
  
      :param dd: Dialogue dictionary.
      :type dd: Dict[str, str]
      :return: (query, response, error response)
      :rtype: (str, str | NoResponse, str | NoResponse)