def check_array_method(
    ndarray_np,
    fn,
    args,
    kwargs,
    print_msg,
    check_type=True,
):
    """
    Run np_array.func and num_array.func respectively and compare results
    """

    ndarray_num = num.array(ndarray_np)
    a = getattr(ndarray_np, fn)(*args, **kwargs)
    b = getattr(ndarray_num, fn)(*args, **kwargs)
    compare_array_and_print_results(a, b, print_msg, check_type=check_type)

    Run np_array.func and num_array.func respectively and compare results
    
tests/integration/utils/utils.py