'dtype' is an invalid keyword argument for this function