input: Write a function to generate a voltage signal with random noise using a Python script. The input to the function should be a frequency and an amplitude. The function should return the generated voltage signal.
  assert generate_voltage_signal(250, 1)[:5]==np.sin(2*np.pi*250*(np.linspace(0, 1, 1000)[:5])) + np.random.normal(0, 0.1, 5)
output: import numpy as np
  
  def generate_voltage_signal(frequency, amplitude):
      time = np.linspace(0, 1, 1000)
      signal = amplitude * np.sin(2 * np.pi * frequency * time) + np.random.normal(0, 0.1, 1000)
      return signal