Python How Do I Make Impulse Noise Image Efficiently

Python How Do I Make Impulse Noise Image Efficiently