input: 
  import numpy as np 
  
  def generate_noise_signal(freq: int, amplitude: float) -> np.ndarray:
      """ Generate a voltage signal with random noise based on the given frequency and amplitude.
      The time vector is sampled from 0 to 1 second with 1000 points.
      >>> np.random.seed(42)
      >>> generate_noise_signal(250, 1)
      array([-0.10948848, -0.13253962, -0.27757245, ..., -0.04088454, -0.09016379,  0.05376344])
      """
      t = np.linspace(0, 1, 1000)
      voltage_signal = np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal
  
output:     t = np.linspace(0, 1, 1000)
      voltage_signal = amplitude * np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, 1000)
      return voltage_signal