[NumPy] Remove references to deprecated NumPy type aliases
This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str).

NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy.

See huggingface/diffusers#1810 for a similar issue in diffusers.

Co-authored-by: Peter Hawkins <phawkins@google.com>
_The documentation is not available anymore as the PR was closed or merged._<|||||>@sgugger I heard you might be the right person to review this. Please let me know if you have any questions 🤗 