code: def test_get_2dgrid():
      """Test extraction of number of entries for 2d hists"""
      df, hist1, hist2, hist3 = get_test_histograms1()
  
      grid1 = get_2dgrid(hist1)
      grid2 = get_2dgrid(hist2)
      grid3 = get_2dgrid(hist3)
  
      grid_comp = np.asarray(
          [
              [1.0, 0.0, 0.0, 0.0, 0.0],
              [0.0, 1.0, 0.0, 0.0, 0.0],
              [0.0, 0.0, 1.0, 0.0, 0.0],
              [0.0, 0.0, 0.0, 1.0, 0.0],
              [0.0, 0.0, 0.0, 0.0, 1.0],
          ]
      )
  
      assert (grid1 == np.zeros((0, 0))).all()
      assert (grid2 == grid_comp).all()
      assert (grid3 == grid_comp).all()
  
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 9 for calling a global function with example usage: test_get_2dgrid() without return types