code: def _make_histograms(values, hists, hist_centers, x_axis, n_bins):
      if len(values.shape) > 1:
          for i in range(values.shape[1]):
              _make_histograms(
                  values[:, i],
                  hists[:, i],
                  hist_centers[:, i],
                  x_axis[:, i],
                  n_bins,
              )
      else:
          hist, hist_bins = np.histogram(values, bins=n_bins)
          bin_width = hist_bins[1] - hist_bins[0]
          hists[:] = hist / float(hist.sum())
          hist_centers[:] = 0.5 * (hist_bins[1:] + hist_bins[:-1])
          x_axis[:n_bins] = hist_centers
  
file_path: edward/tests/models/param_mixture_stats_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import numpy
  import tensorflow
  from edward.models import Beta, Normal, ParamMixture
label_desc: Use image node_id 1 for calling a global function with example usage: _make_histograms(values, hists, hist_centers, x_axis, n_bins) without return types