input: Write a function to generate a voltage signal with random noise based on a given frequency and amplitude using a Python script. The function should create a time array and a sine wave with added Gaussian noise. The frequency and amplitude should be provided as inputs, and the output should be the noisy voltage signal.
  
  def generate_voltage_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 np.allclose(generate_voltage_signal(250, 1)[0], np.sin(0.5 * np.pi) + np.random.normal(0, 0.1), atol=0.5) == True
  assert np.allclose(generate_voltage_signal(500, 1.5)[0], np.sin(np.pi) + np.random.normal(0, 0.1), atol=0.5) == True
  assert np.allclose(generate_voltage_signal(100, 0.5)[0], np.sin(0.2 * np.pi) + np.random.normal(0, 0.1), atol=0.5) == True
output: 
  def generate_voltage_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
  