It worked!!! also we can multiply it with factor like 0.2 to reduce the noise
def add_noise(inputs):
     noise = torch.randn_like(inputs)*0.2
     return inputs + noise

Original Image:

Noised Image: