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 _try_listen_tf_v1(self):
      if not _tf_version().startswith("1."):
          raise util.TryFailed()
      try:
          # pylint: disable=import-error,no-name-in-module
          from tensorflow.compat.v1.summary import FileWriter
      except Exception as e:
          self.log.debug(
              "error importing tensorflow.compat.v1.summary.FileWriter: %s",
              e,
          )
          raise util.TryFailed()
      else:
          self.log.debug(
              "wrapping tensorflow.compat.v1.summary.FileWriter.add_summary"
          )
          python_util.listen_method(
              FileWriter, "add_summary", self._handle_summary
          )
  
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 10 for calling the SummaryPlugin obj's underlying member method code with example usage: obj._try_listen_tf_v1() without return types