class_docstr: Class that can add_events and then yield them back.
  
  Satisfies the EventGenerator API required for the EventAccumulator.
  Satisfies the EventWriter API required to create a tf.summary.FileWriter.
  
  Has additional convenience methods for adding test events.
class_docstr_tok: ["Class","that","can","add_events","and","then","yield","them","back",".","Satisfies","the","EventGenerator","API","required","for","the","EventAccumulator",".","Satisfies","the","EventWriter","API","required","to","create","a","tf.summary.FileWriter",".","Has","additional","convenience","methods","for","adding","test","events","."]
code: def AddHistogram(
      self,
      tag,
      wall_time=0,
      step=0,
      hmin=1,
      hmax=2,
      hnum=3,
      hsum=4,
      hsum_squares=5,
      hbucket_limit=None,
      hbucket=None,
  ):
      histo = summary_pb2.HistogramProto(
          min=hmin,
          max=hmax,
          num=hnum,
          sum=hsum,
          sum_squares=hsum_squares,
          bucket_limit=hbucket_limit,
          bucket=hbucket,
      )
      event = event_pb2.Event(
          wall_time=wall_time,
          step=step,
          summary=summary_pb2.Summary(
              value=[summary_pb2.Summary.Value(tag=tag, histo=histo)]
          ),
      )
      self.AddEvent(event)
  
imports: import os
  import numpy
  import tensorflow
  from tensorboard.backend.event_processing import event_accumulator
  from tensorboard.compat.proto import config_pb2
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.distribution import compressor
  from tensorboard.util import tensor_util
  from tensorboard.util import test_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 4 for calling the _EventGenerator obj's underlying member method code with example usage: obj.AddHistogram(tag, wall_time, step, hmin, hmax, hnum, hsum, hsum_squares, hbucket_limit, hbucket) without return types