input: Write a function to generate a voltage signal with random noise using a Python script. The input consists of a signal of frequency 250 Hz and amplitude 1 V. The output should be a numpy array representing the noisy voltage signal.
  
  
  import numpy as np
  
  def generate_noisy_signal(freq, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal
  
  assert len(generate_noisy_signal(250, 1)) == 1000
  assert isinstance(generate_noisy_signal(250, 1), np.ndarray)
  
output: def generate_noisy_signal(freq, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal