NumPy - Array Data Types
Identify the error in this code snippet:
import numpy as np
arr = np.array([1.0, 2.0], dtype='float16')
arr = arr.astype('float32')
print(arr.dtype)