code: def test_assert_similar_hists():
      """Test assert on similarity of list of histograms
  
      Check similarity of: type, n-dim, sub-hists, specific type attributes
      """
      # dummy dataset with mixed types
      # convert timestamp (col D) to nanosec since 1970-1-1
      df = pd._testing.makeMixedDataFrame()
      df["date"] = df["D"].apply(to_ns)
  
      # building 1d-, 2d-, and 3d-histogram (iteratively)
      hist0 = hg.Bin(5, 0, 5, unit("A"))
      hist1 = hg.Categorize(unit("C"))
      hist2 = hg.Bin(5, 0, 5, unit("A"), value=hist1)
      hist3 = hg.Categorize(unit("C"), value=hist0)
  
      hist4 = hg.SparselyBin(
          origin=pd.Timestamp("2009-01-01").value,
          binWidth=pd.Timedelta(days=1).value,
          quantity=unit("date"),
          value=hist2,
      )
      hist5 = hg.SparselyBin(
          origin=pd.Timestamp("2009-01-01").value,
          binWidth=pd.Timedelta(days=1).value,
          quantity=unit("date"),
          value=hist3,
      )
      # fill them
      for hist in [hist0, hist1, hist2, hist3, hist4, hist5]:
          hist.fill.numpy(df)
  
      for hist in [hist0, hist1, hist2, hist3, hist4, hist5]:
          assert check_similar_hists([hist, hist])
  
      args01 = [""]
      args23 = [""]
      args45 = [""]
  
      try:
          assert_similar_hists([hist0, hist1])
      except ValueError as e:
          args01 = e.args
  
      try:
          assert_similar_hists([hist2, hist3])
      except ValueError as e:
          args23 = e.args
  
      try:
          assert_similar_hists([hist4, hist5])
      except ValueError as e:
          args45 = e.args
  
      assert args01[0] == "Input histograms are not all similar."
      assert args23[0] == "Input histograms are not all similar."
      assert args45[0] == "Input histograms are not all similar."
  
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 14 for calling a global function with example usage: test_assert_similar_hists() without return types