def METHOD_NAME(src, bins):
    eps = 1.0e-8
    src_array = np.array(src)
    if num.isscalar(bins):
        bins_maybe_array = bins
    else:
        bins_maybe_array = np.array(bins)
        assert bins_maybe_array.shape[0] > 0
    np_out, np_bins_out = np.histogram(src_array, bins_maybe_array)
    num_out, num_bins_out = num.histogram(src_array, bins_maybe_array)
    assert allclose(np_out, num_out, atol=eps)
    assert allclose(np_bins_out, num_bins_out, atol=eps)