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 parameters. The signal should be generated for a time duration of 1 second with 1000 samples.
  assert generate_voltage_signal(250, 1).size==1000
  assert abs(generate_voltage_signal(250, 1).mean())<0.1
  assert generate_voltage_signal(0, 1).mean()==0
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)
      noise = np.random.normal(0, 0.1, 1000)
      return signal + noise