class_docstr: Represents a histogram of real-valued events.
  
  A histogram is a list of counts, each over a range of values.
  For example, given this list of values [0.5, 0.0, 1.0, 0.6, 1.5, 2.4, 0.1],
  a histogram over 3 ranges [0, 1), [1, 2), [2, 3) would be:
    [0, 1): 4
    [1, 2): 2
    [2, 3): 1
  Each range is inclusive in the lower bound and exclusive in the upper bound
  (hence the square open bracket but curved close bracket).
  
  Usage examples:
      A distribution over input/output lengths.
      A distribution over compute times.
docstr: Adds the counts of another Histogram into this instance.
  
  `other` must have the same buckets as this instance. The counts
  from `other` are added to the counts for this instance.
  
  Args:
    other: Another Histogram instance with the same buckets as this instance.
  
  Raises:
    MergeStatisticsError: If `other` is not a Histogram or the buckets
        are not the same.
docstr_tok: ["Adds","the","counts","of","another","Histogram","into","this","instance",".","`","other","`","must","have","the","same","buckets","as","this","instance",".","The","counts","from","`","other","`","are","added","to","the","counts","for","this","instance",".","Args",":","other",":","Another","Histogram","instance","with","the","same","buckets","as","this","instance",".","Raises",":","MergeStatisticsError",":","If","`","other","`","is","not","a","Histogram","or","the","buckets","are","not","the","same","."]
code: def _merge_from(self, other):
      """Adds the counts of another Histogram into this instance.
  
      `other` must have the same buckets as this instance. The counts
      from `other` are added to the counts for this instance.
  
      Args:
        other: Another Histogram instance with the same buckets as this instance.
  
      Raises:
        MergeStatisticsError: If `other` is not a Histogram or the buckets
            are not the same.
      """
      if not isinstance(other, Histogram):
          raise MergeStatisticsError(
              "Cannot merge %s into Histogram"
              % other.__class__.__name__
          )
      if self.buckets != other.buckets:
          raise MergeStatisticsError(
              "Histogram buckets do not match. Expected %s, got %s"
              % (self.buckets, other.buckets)
          )
      for bucket_lower, count in other.counters.items():
          self.counters[bucket_lower] += count
  
imports: import abc
  import bisect
  import copy
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling the Histogram obj's underlying member method code with example usage: obj._merge_from(other) without return types