Python How Do I Make Impulse Noise Image Efficiently Using Numpy

Python How Do I Make Impulse Noise Image Efficiently Using Numpy