code: def encode(self, tf_graph_predictions):
      
      row = []
      for col in self._header:
        row.append(str(tf_graph_predictions[col]))
  
      return ','.join(row)
docs: Encodes the graph json prediction into csv.
  
      Args:
        tf_graph_predictions: python dict.
  
      Returns:
        csv string.