input: Write a function to generate a voltage signal with random noise based on the given frequency and amplitude. The function should return the noisy voltage signal.
  
  
  import numpy as np
  
  def generate_noisy_signal(frequency, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * frequency * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal
  
  
  assert np.allclose(len(generate_noisy_signal(250, 1)), 1000) == True
  assert np.allclose(generate_noisy_signal(500, 2).mean(), 0, atol=0.1) == True
  assert np.allclose(generate_noisy_signal(100, 3).max(), 3.1, atol=0.5) == True
output: import numpy as np
  
  def generate_noisy_signal(frequency, amplitude):
      t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * frequency * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal