input: 
  import numpy as np
  
  def generate_voltage_signal_with_noise(freq: float, amplitude: float, duration: float, num_samples: int) -> np.ndarray:
      """Generate a voltage signal with random noise based on the given frequency, amplitude, duration, and number of samples.
      >>> generate_voltage_signal_with_noise(250, 1, 1, 1000).shape
      (1000,)
      """
      t = np.linspace(0, duration, num_samples)
      voltage_signal = amplitude * np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, num_samples)
      return voltage_signal
  
output:     t = np.linspace(0, duration, num_samples)
      voltage_signal = amplitude * np.sin(2 * np.pi * freq * t) + np.random.normal(0, 0.1, num_samples)
      return voltage_signal