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 inputs and return the voltage signal.
  assert np.allclose(generate_voltage_signal(250, 1)[:5], np.array([0.17170809,  0.10992669,  1.00455491,  0.2930281,  0.54018386]), atol=1e-2)
  assert np.allclose(generate_voltage_signal(500, 2)[:5], np.array([-0.69265781, -0.61319754, 0.78523854, 2.01152311, 1.57978234]), atol=1e-2)
  assert generate_voltage_signal(0, 0).shape == (1000,)
  assert generate_voltage_signal(100, 3)[0] != generate_voltage_signal(100, 3)[1]
output: import numpy as np
  
  def generate_voltage_signal(frequency, amplitude):
      t = np.linspace(0, 1, 1000)
      signal = amplitude * np.sin(2 * np.pi * frequency * t)
      noise = np.random.normal(0, 0.1, 1000)
      return signal + noise