def METHOD_NAME():
    a = mk_seq_array(np, (4,))
    b = mk_seq_array(num, (4,))
    out_np = np.random.randint(1, 5, (4,))
    out_num = np.random.randint(1, 5, (4,))
    np.compress([True, True, True, True], a, 0, out_np)
    num.compress([True, True, True, True], b, 0, out_num)
    # for cuNumeric, the last parameter 'out',
    # it should be written as 'out=out_num'
    # otherwise it raises error
    assert np.array_equal(out_num, out_np)