human
Complete this python program:
def _split_nonparallel_tests(test):
assistant
#Here is the Python program you requested.

    """Split test suite into parallel and serial tests.
    """
    ptests = []
    stests = []
    def is_parallelizable_test_case(test):
        method_name = test._testMethodName
        method = getattr(test, method_name)
        if ((method.__name__ != method_name) and (method.__name__ == 'testFailure')):
            return False
        return getattr(test, '_numba_parallel_test_', True)
    if isinstance(test, unittest.TestSuite):
        for t in test:
            (p, s) = _split_nonparallel_tests(t)
            ptests.extend(p)
            stests.extend(s)
    elif is_parallelizable_test_case(test):
        ptests = [test]
    else:
        stests = _flatten_suite(test)
    return (ptests, stests)