docstr: Adds many scalar data to summary.
  
  Note that this function also keeps logged scalars in memory. In extreme case it explodes your RAM.
  
  Args:
      tag (string): Data identifier
      main_tag (string): Data group identifier
      tag_scalar_dict (dict): Key-value pair storing the tag and corresponding values
      global_step (int): Global step value to record
  
  Examples::
  
      writer.add_scalars('run_14h',{'xsinx':i*np.sin(i/r),
                                    'xcosx':i*np.cos(i/r),
                                    'arctanx': numsteps*np.arctan(i/r)}, i)
      This function adds three plots:
          'run_14h-xsinx',
          'run_14h-xcosx',
          'run_14h-arctanx'
      with the corresponding values.
docstr_tok: ["Adds","many","scalar","data","to","summary",".","Note","that","this","function","also","keeps","logged","scalars","in","memory",".","In","extreme","case","it","explodes","your","RAM",".","Args",":","tag","(","string",")",":","Data","identifier","main_tag","(","string",")",":","Data","group","identifier","tag_scalar_dict","(","dict",")",":","Key-value","pair","storing","the","tag","and","corresponding","values","global_step","(","int",")",":","Global","step","value","to","record","Examples",":",":","writer.add_scalars","(","'run_14h","'",",","{","'xsinx","'",":","i","*","np.sin","(","i\/r",")",",","'xcosx","'",":","i","*","np.cos","(","i\/r",")",",","'arctanx","'",":","numsteps","*","np.arctan","(","i\/r",")","}",",","i",")","This","function","adds","three","plots",":","'run_14h-xsinx","'",",","'run_14h-xcosx","'",",","'run_14h-arctanx'","with","the","corresponding","values","."]
code: def add_scalars(self, main_tag, tag_scalar_dict, global_step=None):
      """Adds many scalar data to summary.
  
      Note that this function also keeps logged scalars in memory. In extreme case it explodes your RAM.
  
      Args:
          tag (string): Data identifier
          main_tag (string): Data group identifier
          tag_scalar_dict (dict): Key-value pair storing the tag and corresponding values
          global_step (int): Global step value to record
  
      Examples::
  
          writer.add_scalars('run_14h',{'xsinx':i*np.sin(i/r),
                                        'xcosx':i*np.cos(i/r),
                                        'arctanx': numsteps*np.arctan(i/r)}, i)
          This function adds three plots:
              'run_14h-xsinx',
              'run_14h-xcosx',
              'run_14h-arctanx'
          with the corresponding values.
      """
      for key in tag_scalar_dict.keys():
          self.add_scalar(
              key, tag_scalar_dict[key], global_step, main_tag
          )
  
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 4 for calling the VisdomWriter obj's underlying member method code with example usage: obj.add_scalars(main_tag, tag_scalar_dict, global_step) without return types