Add docstring to assert_nD