class_docstr: Fake summary writer.
class_docstr_tok: ["Fake","summary","writer","."]
docstr: Add summary.
docstr_tok: ["Add","summary","."]
code: def add_summary(self, summ, current_global_step):
      """Add summary."""
      if isinstance(summ, bytes):
          summary_proto = summary_pb2.Summary()
          summary_proto.ParseFromString(summ)
          summ = summary_proto
      if current_global_step in self._summaries:
          step_summaries = self._summaries[current_global_step]
      else:
          step_summaries = []
          self._summaries[current_global_step] = step_summaries
      step_summaries.append(summ)
  
file_path: tensorflow/tensorflow/python/summary/writer/fake_summary_writer.py
imports: from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import test_util
  from tensorflow.python.summary.writer import writer
  from tensorflow.python.summary.writer import writer_cache
label_desc: Use image node_id 6 for calling the FakeSummaryWriter obj's underlying member method code with example usage: obj.add_summary(summ, current_global_step) without return types