input: Write a function to generate a voltage signal with random noise using a Python script. The function should take the frequency and amplitude as inputs and return a numpy array representing the signal with added noise.
  
  def generate_signal(frequency, amplitude):
      import numpy as np 
      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
      
  assert np.array_equal(generate_signal(250, 1) + np.random.normal(0, 0.1, 1000), np.sin(2 * np.pi * 250 * np.linspace(0, 1, 1000)) + np.random.normal(0, 0.1, 1000)) is True
  assert generate_signal(500, 2).shape == (1000,)
  assert generate_signal(100, 0.5).shape == (1000,)
  assert np.isclose(np.max(generate_signal(250, 1)), 1.1, atol=0.1) is True
  assert np.isclose(np.min(generate_signal(250, 1)), -1.1, atol=0.1) is True
output: def generate_signal(frequency, amplitude):
      import numpy as np 
      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