def check_module_function(
    fn,
    args,
    kwargs,
    print_msg,
    check_type=True,
):
    """
    Run np.func and num.func respectively and compare results
    """

    a = getattr(np, fn)(*args, **kwargs)
    b = getattr(num, fn)(*args, **kwargs)
    compare_array_and_print_results(a, b, print_msg, check_type=check_type)

    Run np.func and num.func respectively and compare results
    
tests/integration/utils/utils.py