class_docstr: Log statistics writer implementation for Tensorboard.
  :param log_dir: log_dir for TensorBoard
  :param tensorboard_render_figure: Indicates whether to visualize the actions taken in TensorBoard.
class_docstr_tok: ["Log","statistics","writer","implementation","for","Tensorboard",".",":","param","log_dir",":","log_dir","for","TensorBoard",":","param","tensorboard_render_figure",":","Indicates","whether","to","visualize","the","actions","taken","in","TensorBoard","."]
code: def _event_to_tag(
      event: Callable,
      name: str,
      groups: Optional[List[Union[int, str]]],
  ) -> str:
      # use the qualified name of the method as a basis, in the form 'EventInterface.event_method'
      qualified_name = event.__qualname__
  
      key_name = qualified_name.replace(".", "/")
  
      if name is not None and len(name):
          key_name = key_name + "/" + name
  
      if groups is not None:
          for group in groups:
              # support grouping projections by skipping None values
              if group is None:
                  continue
  
              key_name = key_name + "/" + str(group)
  
      return key_name
  
file_path: maze/maze/core/log_stats/log_stats_writer_tensorboard.py
imports: import logging
  import math
  import numbers
  from typing import Callable, Union, List, Optional
  import numpy
  from torch.utils.tensorboard import SummaryWriter
  from maze.core.annotations import override
  from maze.core.log_stats.log_stats import LogStatsWriter, LogStats, GlobalLogState
label_desc: Use image node_id 5 for calling the LogStatsWriterTensorboard obj's underlying member method code with example usage: obj._event_to_tag(event, name, groups) and returns: key_name