If in the code there is np.void() you have to tell python what "np" is, so you have to import numpy as np. If you only do import numpy you have to use numpy.void(), or if you do from numpy import void you can just do void().
np.void()
import numpy as np
import numpy
numpy.void()
from numpy import void
void()