docs: def translate_response_to_dict(rawdata, dirt):
      """Translate SMT response to a python dictionary.
  
      SMT response example:
      keyword1: value1\n
      keyword2: value2\n
      ...
      keywordn: valuen\n
  
      Will return a python dictionary:
      {keyword1: value1,
       keyword2: value2,
       ...
       keywordn: valuen,}
  
      """
      data_list = rawdata.split("\n")
      data = {}
  
      for ls in data_list:
          for k in list(dirt.keys()):
              if ls.__contains__(dirt[k]):
                  data[k] = ls[(ls.find(dirt[k]) + len(dirt[k])):].strip()
                  break
  
      if data == {}:
          msg = ("Invalid smt response data. Error: No value matched with "
                 "keywords. Raw Data: %(raw)s; Keywords: %(kws)s" %
                 {'raw': rawdata, 'kws': str(dirt)})
          raise exception.SDKInternalError(msg=msg)
  
      return data