code: def add_items_to_message(msg, log_dict):
      
      out = msg
      for key, value in log_dict.items():
          out += " {}={}".format(key, value)
      return out
docs: Utility function to add dictionary items to a log message.