code: def get_sine_sweep(sample_rate, offset=DEFAULT_OFFSET):
      max_sweep_rate = sample_rate
      freq = _get_log_freq(sample_rate, max_sweep_rate, offset)
      delta = 2 * math.pi * freq / sample_rate
      cummulative = torch.cumsum(delta, dim=0)
      signal = torch.sin(cummulative).unsqueeze(dim=0)
      return signal
  
imports: import torch
  import torchaudio
  import torchaudio.functional
  import torchaudio.transforms
  import math
  import timeit
  import librosa
  import matplotlib.colors
  import matplotlib.pyplot
  import pandas
  import resampy
  from IPython.display import Audio
label_desc: Use image node_id 4 for calling a global function with example usage: get_sine_sweep(sample_rate, offset) and returns: signal