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 and return the voltage signal. The noise should have a mean of 0 and a standard deviation of 0.1.
  assert (generate_signal(250, 1)[:5]==[0.0734824674535107, 0.9835647880228886, 0.6948735862506527, 0.24654210227984754, -0.1520782554943326]).all()
  assert (generate_signal(500, 2)[:5]==[0.14424207576175987, 1.913208969709915, 1.2565710891639758, 0.670471786847722, 0.1353498104614988]).all()
  assert (generate_signal(100, 0.5)[:5]==[0.01742934412299074, 0.5146251038355785, 0.5724445021729469, 0.49388965007109265, 0.27392542409164587]).all()
  assert (generate_signal(300, 3)[:5]==[0.15886030496853017, 2.4850616074738734, 2.461113190530905, 1.927487340790653, 1.1896904178626549]).all()
  assert (generate_signal(0, 0)[:5]==[0.0, 0.0, 0.0, 0.0, 0.0]).all()
output: def generate_signal(frequency, amplitude):
      import numpy as np
      t = np.linspace(0, 1, 1000)
      noise = np.random.normal(0, 0.1, 1000)
      signal = amplitude * np.sin(2 * np.pi * frequency * t) + noise
      return signal