remove assert in _get_ufunc_and_otypes, add a test in test_function_base.py