Python Numpy требует примера функции с атрибутом требований
# welcome to softhunt.net
import numpy as np
# Python program explaining
# numpy.require()
data = np.arange(9).reshape(3, 3)
b = np.require(data, dtype=np.float32,
requirements=['A', 'W', 'O', 'C'])
print(data)
print(b.flags)
Outrageous Ostrich