input: Write a function to generate a voltage signal with random noise using a Python script. The function should take the frequency and amplitude of the signal as input and return the generated voltage signal.
  
  def generate_signal(frequency, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * frequency * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal
  
  assert np.allclose(len(generate_signal(250, 1)), 1000)
output: def generate_signal(frequency, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * frequency * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal