def METHOD_NAME(self, sources_or_targets, ref):
    """Create a histogram of input data and assert it against reference values"""
    hist = np.histogram(sources_or_targets, bins=self.N, range=(1, self.N + 1))
    counts, _ = hist
    np_testing.assert_array_equal(counts, ref)