sync with numpy's builtin: diagflat

Only method's name changed.  No other tests using this method yet.
Spartan doesn't support the `offset` argument for now. So it will be better to notice this in the comment. You can also raise a NotImplementedError.