class_docstr: Summary plugin base class.
  
  Summary plugins log additional summary values (e.g. GPU usage,
  etc.) per logged summary. This class is used to patch the TF env
  to handle `add_summary` of `tensorflow.summary.FileWriter` and of
  `tensorboardX.writer.SummaryToEventTransformer`.
class_docstr_tok: ["Summary","plugin","base","class",".","Summary","plugins","log","additional","summary","values","(","e.g",".","GPU","usage",",","etc",".",")","per","logged","summary",".","This","class","is","used","to","patch","the","TF","env","to","handle","`","add_summary","`","of","`","tensorflow.summary.FileWriter","`","and","of","`","tensorboardX.writer.SummaryToEventTransformer","`","."]
code: def _listen_tf_summary(self):
      # pylint: disable=import-error,no-name-in-module
      from tensorflow import summary
  
      self.log.debug("wrapping tensorflow.summary.scalar")
      python_util.listen_function(
          summary, "scalar", self._handle_tf_scalar
      )
  
imports: import time
  import warnings
  from guild import python_util
  from guild import util
  from guild.plugin import Plugin
label_desc: Use image node_id 9 for calling the SummaryPlugin obj's underlying member method code with example usage: obj._listen_tf_summary() without return types