code: def test_fullhistogram_random():
      np.random.seed(122)
      A = np.random.rand(12, 3, 44, 33) * 1000
      A = A.astype(np.uint16)
      hist = fullhistogram(A)
      for i in range(len(hist)):
          assert hist[i] == (A == i).sum()
      assert len(hist.shape) == 1
  
      A = A[::2, :, 2::3, 1:-2:2]
      hist = fullhistogram(A)
      for i in range(len(hist)):
          assert hist[i] == (A == i).sum()
      assert hist.sum() == A.size
      assert len(hist.shape) == 1
  
file_path: mahotas/mahotas/tests/test_histogram.py
imports: import numpy
  from mahotas.histogram import fullhistogram
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_fullhistogram_random() without return types