code: def dominant_interval(histogram, smooth=None):
      """
      Extract the dominant interval of the given histogram.
  
      Parameters
      ----------
      histogram : tuple
          Histogram (tuple of 2 numpy arrays, the first giving the strengths of
          the bins and the second corresponding delay values).
      smooth : int or numpy array, optional
          Smooth the histogram with the given kernel (size).
  
      Returns
      -------
      interval : int
          Dominant interval.
  
      Notes
      -----
      If `smooth` is an integer, a Hamming window of that length will be used as
      a smoothing kernel.
  
      """
      # smooth the histogram bins
      if smooth:
          histogram = smooth_histogram(histogram, smooth)
      # return the dominant interval
      return histogram[1][np.argmax(histogram[0])]
  
imports: from __future__ import absolute_import, division, print_function
  import sys
  import warnings
  from operator import itemgetter
  import numpy
  from ..audio.signal import smooth
  from ..processors import BufferProcessor, OnlineProcessor
label_desc: Use image node_id 4 for calling a global function with example usage: dominant_interval(histogram, smooth) and returns: histogram