input: Write a function that generates 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 noisy voltage signal.
  
  assert np.allclose(generate_noisy_signal(250, 1)[:5], np.array([0.04978364, 0.67690807, 0.87402639, 0.58370433, 0.11503742]), atol=1e-2)
  assert np.allclose(generate_noisy_signal(1000, 2)[:5], np.array([1.79, 2.56, 1.42, 2.68, 2.84]), atol=1e-2)
output: import numpy as np
  
  def generate_noisy_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)
      noisy_signal = signal + noise
      return noisy_signal