np.bool is not correct
np.bool won't work.
dtype = bool is the correct statement.
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if you to go that like below the message error, it directs you to the solution that shoul be:
Just need to add the underscore after 'bool'.
The same goes for str (string).