docstr: Add text data to summary.
  
  Args:
      tag (string): Data identifier
      text_string (string): String to save
      global_step (int): Global step value to record
  Examples::
      writer.add_text('lstm', 'This is an lstm', 0)
      writer.add_text('rnn', 'This is an rnn', 10)
docstr_tok: ["Add","text","data","to","summary",".","Args",":","tag","(","string",")",":","Data","identifier","text_string","(","string",")",":","String","to","save","global_step","(","int",")",":","Global","step","value","to","record","Examples",":",":","writer.add_text","(","'lstm","'",",","'This","is","an","lstm","'",",","0",")","writer.add_text","(","'rnn","'",",","'This","is","an","rnn","'",",","10",")"]
code: def add_text(self, tag, text_string, global_step=None):
      """Add text data to summary.
  
      Args:
          tag (string): Data identifier
          text_string (string): String to save
          global_step (int): Global step value to record
      Examples::
          writer.add_text('lstm', 'This is an lstm', 0)
          writer.add_text('rnn', 'This is an rnn', 10)
      """
      if text_string is None:
          # Visdom doesn't support tags, write the tag as the text_string
          text_string = tag
      self.vis.text(text_string)
  
imports: import gc
  import numpy
  import math
  import json
  import time
  from .summary import compute_curve
  from .utils import figure_to_image
  from .x2num import make_np
label_desc: Use image node_id 11 for calling the VisdomWriter obj's underlying member method code with example usage: obj.add_text(tag, text_string, global_step) without return types