code: def test_get_consistent_numpy_1dhists():
      """Test extraction of number of entries and bin-edges/labels
  
      When first making bin_edges/bin-labels of input histograms consistent to each other.
      """
      df1 = pd.DataFrame({"A": [0, 1, 2, 3, 4, 3, 2, 1, 1, 1]})
      df2 = pd.DataFrame({"A": [2, 3, 4, 5, 7, 4, 6, 5, 7, 8]})
  
      # building 1d-, 2d-, and 3d-histogram (iteratively)
      hist1 = hg.SparselyBin(
          origin=0.0, binWidth=1.0, quantity=unit("A")
      )
      hist2 = hg.SparselyBin(
          origin=0.0, binWidth=1.0, quantity=unit("A")
      )
  
      # fill them
      hist1.fill.numpy(df1)
      hist2.fill.numpy(df2)
  
      nphist1, nphist2 = get_consistent_numpy_1dhists(
          [hist1, hist2], get_bin_labels=False
      )
      nphist_list, centers = get_consistent_numpy_1dhists(
          [hist1, hist2], get_bin_labels=True
      )
  
      entries1 = [1.0, 4.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0, 0.0]
      entries2 = [0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 1.0, 2.0, 1.0]
      bin_edges = [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
      bin_centers = [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5]
  
      np.testing.assert_array_equal(nphist1[0], entries1)
      np.testing.assert_array_equal(nphist1[1], bin_edges)
      np.testing.assert_array_equal(nphist2[0], entries2)
      np.testing.assert_array_equal(nphist2[1], bin_edges)
  
      np.testing.assert_array_equal(nphist_list[0][0], entries1)
      np.testing.assert_array_equal(nphist_list[0][1], bin_edges)
      np.testing.assert_array_equal(nphist_list[1][0], entries2)
      np.testing.assert_array_equal(nphist_list[1][1], bin_edges)
      np.testing.assert_array_equal(centers, bin_centers)
  
file_path: popmon/tests/popmon/analysis/test_hist_numpy.py
imports: import histogrammar
  import numpy
  import pandas
  import pytest
  from popmon.analysis.hist_numpy import assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepare_2dgrid, set_2dgrid
label_desc: Use image node_id 11 for calling a global function with example usage: test_get_consistent_numpy_1dhists() without return types