code: def histogram(data, binwidth, xmin, xmax):
      """generate bin-centered histogram of provided data
      return bins of given binwidth (and histogram) generated between [xmin,xmax]
      """
      bins = arange(xmin, xmax, binwidth)
      binsc = bins + (0.5 * binwidth)
      try:  # FIXME: use updated numpy.histogram
          histo = numpyhisto(data, bins, new=False)[0]
      except:
          histo = numpyhisto(data, bins)[0]
      return binsc[: len(histo)], histo
  
file_path: mystic/mystic/models/lorentzian.py
imports: from .abstract_model import AbstractModel
  from numpy import sum
  from numpy import array, pi, asarray, arange
  import random
  from numpy import histogram
label_desc: Use image node_id 2 for calling a global function with example usage: histogram(data, binwidth, xmin, xmax) and returns: binsc,  histo